小编Jan*_*aul的帖子

visual studio code node.js调试器无法在标准启动时附加

我尝试使用visualstudio代码提供的简单node.js示例,但不幸的是,当从visual studio代码(在OS X上)启动节点时,节点以一些任意的debug-brk启动,但调试器附件失败.

当我使用--debug-brk = 5858手动运行节点应用程序然后使用附件我可以调试我的应用程序.有人遇到同样的问题吗?

PS我从单声道项目页面.pkg安装了单声道

这是我的launch.js:

{
"version": "0.1.0",
// List of configurations. Add new configurations or edit existing ones.  
// ONLY "node" and "mono" are supported, change "type" to switch.
"configurations": [
    {
        // Name of configuration; appears in the launch configuration drop down menu.
        "name": "Launch app",
        // Type of configuration. Possible values: "node", "mono".
        "type": "node",
        // Workspace relative or absolute path to the program.
        "program": "./bin/www",
        // Automatically stop program after launch.
        "stopOnEntry": true, …
Run Code Online (Sandbox Code Playgroud)

node.js visual-studio-code

8
推荐指数
1
解决办法
2798
查看次数

标签 统计

node.js ×1

visual-studio-code ×1