admin管理员组文章数量:1404567
In debug console writes this :
Debugger listening on ws://127.0.0.1:55624/c4f74411-66ec-44b2-9cf6-15efb60f8611 For help, see: Debugger attached.
(3) [Array(2), Array(2), Array(2)] No debug adapter, can not send 'variables'
i will be grateful if you help me :)
In debug console writes this :
Debugger listening on ws://127.0.0.1:55624/c4f74411-66ec-44b2-9cf6-15efb60f8611 For help, see: https://nodejs/en/docs/inspector Debugger attached.
(3) [Array(2), Array(2), Array(2)] No debug adapter, can not send 'variables'
i will be grateful if you help me :)
Share Improve this question asked Sep 8, 2020 at 22:18 Маргарита ГеоргиеваМаргарита Георгиева 311 silver badge4 bronze badges 1- stackoverflow./questions/61817528/… – epascarello Commented Sep 8, 2020 at 22:21
1 Answer
Reset to default 5This happens because your program ends very quickly and the VS Code console tries to display an object from your program (you have probably tried to console.log it, right?)
Objects are not transferred from your program to the debugger, and VS Code have to query them when you're expanding it in the console.
Unfortunately, current latest VS Code version is not able to prevent node process to exit. So you have couple of options:
- ignore the error, it should affect only debugger console
- add a breakpoint in the end of your program, so that flush of console happens before node process exit
- use another debugger, e.g. Chrome's inspector
- use raw values in console output, e.g. do
console.log(JSON.stringify({ x: 5, y: 6 }))
instead ofconsole.log({ x: 5, y: 6 })
- create an issue in VS Code repo and wait for it to be fixed
- fix the issue by yourself, look for node's
RuntimeAgent::notify_when_waiting_for_disconnect_
event, which should be used
本文标签: javascriptNo debug adaptercan not send 39variables VSCODEStack Overflow
版权声明:本文标题:javascript - No debug adapter, can not send 'variables VSCODE - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744838585a2627782.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论