Error when trying to launch a debugger in nvim
### Debug adapter definition and debug configuration
```
lua << EOF
local dap = require('dap')
dap.adapters.php = {
type = 'executable',
command = 'node',
args = { '/var/www/vscode-php-debug/out/phpDebug.js' }
}
dap.configurations.php = {
{
type = 'php',
request = 'launch',
name = 'Listen for Xdebug',
port = 9000
}
}
EOF
```
### Debug adapter version
nvim-dap latest release / nvim 0.11.5
### Steps to Reproduce
I set a breakpoint and press F5
### Expected Result
A debug session starts
### Actual Result
I have "command `node` of adapter `php` exited with 1". Info from :DapShowLog
```
function formatPropertyValue(property, quoteString = true) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:136:18)
at node.js:963:3
```
That error comes from my phpDebug.js. Can't understand what's unexpected here...
1 条评论