I'm trying to debug a node application in VSCode on OSX. I get the warning 'Program path uses differently cased character as file on disk; this might result in breakpoints not being hit' and sure enough I can't hit any breakpoints I place in the code.
我正在调试OSX上VSCode中的一个节点应用程序。我得到警告'程序路径使用不同的大小写字符作为文件在磁盘上;这可能会导致断点不会被击中,而且我肯定不能击中我在代码中放置的任何断点。
I'm using the 'launch' configuration to run the debugger and my config looks like...
我正在使用“启动”配置来运行调试器,我的配置看起来……
I've looked at this bug report but even using the application path rather than ${workspaceRoot} produces the same problem.
我看过这个bug报告,但是即使使用应用程序路径而不是${workspaceRoot}也会产生同样的问题。
VSCode发行2613
I run the same code and debug no problem on Windows. My build is
我运行相同的代码并且在Windows上调试没有问题。我的建
OSX El Capitan
OSX埃尔卡皮坦
Node 6.1.3
节点6.1.3
VSCode 1.4
VSCode 1.4
Any help is again appreciated
再次感谢您的帮助
4 个解决方案
#1
2
Not sure about OSX, but in windows i had a similar issue and resolved it by changing the case of the folder name. The actual foldername was Src instead for lower case src. "program": "${workspaceRoot}/src/main.js"
to "program": "${workspaceRoot}/Src/main.js"
.
关于OSX我不太确定,但是在windows中我遇到了类似的问题,通过改变文件夹名的情况来解决。实际的foldername是Src,而不是小写的Src。“程序”:“$ { workspaceRoot } / src /主要。js”到“程序”:“$ { workspaceRoot } / Src / main.js”。
#2
1
The part of "program": "${workspaceRoot}/app.js",
in your launch.json is case-sensitive and must match your actual js file. So the following launch.json:
程序部分:${workspaceRoot}/app。js”,在你的发射。json是区分大小写的,必须与实际的js文件匹配。所以以下launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/NoDeSeRvEr.js",
"cwd": "${workspaceRoot}"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 5858
}
]
}
Needs a NoDeSeRvEr.js
file
需要一个NoDeSeRvEr。js文件
#3
0
Check the name of the app.js file you have created, may be you have mistype the name of file or have used uppercase (App.js) for 'app.js'. I hope it will help to correct the bug.
检查您创建的app.js文件的名称,可能是您错误地输入了文件的名称,或者使用了大写字母(app.js)作为'app.js'。我希望这将有助于纠正错误。
#4
0
This is really an annoying problem. I tried a few ways to walk around but finally found the solution.
这真是个烦人的问题。我尝试了一些方法,但最终找到了解决方法。
You just need to close the cached recently open project and open the project again by clicking File -> Open...
您只需要关闭缓存的最近打开的项目,然后单击File -> open…
Then the warning "Program path uses differently cased character..." will be gone.
然后警告“程序路径使用不同的大小写字符…”将会消失。
#1
2
Not sure about OSX, but in windows i had a similar issue and resolved it by changing the case of the folder name. The actual foldername was Src instead for lower case src. "program": "${workspaceRoot}/src/main.js"
to "program": "${workspaceRoot}/Src/main.js"
.
关于OSX我不太确定,但是在windows中我遇到了类似的问题,通过改变文件夹名的情况来解决。实际的foldername是Src,而不是小写的Src。“程序”:“$ { workspaceRoot } / src /主要。js”到“程序”:“$ { workspaceRoot } / Src / main.js”。
#2
1
The part of "program": "${workspaceRoot}/app.js",
in your launch.json is case-sensitive and must match your actual js file. So the following launch.json:
程序部分:${workspaceRoot}/app。js”,在你的发射。json是区分大小写的,必须与实际的js文件匹配。所以以下launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/NoDeSeRvEr.js",
"cwd": "${workspaceRoot}"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"port": 5858
}
]
}
Needs a NoDeSeRvEr.js
file
需要一个NoDeSeRvEr。js文件
#3
0
Check the name of the app.js file you have created, may be you have mistype the name of file or have used uppercase (App.js) for 'app.js'. I hope it will help to correct the bug.
检查您创建的app.js文件的名称,可能是您错误地输入了文件的名称,或者使用了大写字母(app.js)作为'app.js'。我希望这将有助于纠正错误。
#4
0
This is really an annoying problem. I tried a few ways to walk around but finally found the solution.
这真是个烦人的问题。我尝试了一些方法,但最终找到了解决方法。
You just need to close the cached recently open project and open the project again by clicking File -> Open...
您只需要关闭缓存的最近打开的项目,然后单击File -> open…
Then the warning "Program path uses differently cased character..." will be gone.
然后警告“程序路径使用不同的大小写字符…”将会消失。