Closed bleachkitty closed 3 years ago
It may be because your chunkname does not meet the Lua standard.
Thank you for getting back to me.
As far as I can tell, my chunkname is correct. On the C++ side, I'm using luaL_loadfile() and the path should be fine. Here's an example of the parameter being passed to it:
Note that this worked several months ago when I last was working on the Lua side of this project, so something either changed with VS Code or with this plugin. I did revert this plugin back several versions and it didn't work, so I'm guessing it's something that changed in VS Code. I also found this: https://github.com/microsoft/vscode/issues/68616
That post is about Node.js, but it's pretty much the same issue I'm experiencing. This implies something changed in their debug API.
Any ideas?
%USERPROFILE%\.vscode\extensions\actboy168.lua-debug-1.25.5
client.log
in the extension directory.Here you go. client.log
According to the log, lua-debug tells VSCode to pause at C:/bob/proj/dev/dl/Journey/bin/Data/global/Scripts/Core/ScriptApp.lua
. But VSCode thinks the path is c:/bob/proj/dev/dl/Journey/bin/data/global/Scripts/Core/ScriptApp.lua
.
The first path comes from lua's chunkname, and the second path comes from VSCode. It seems that VSCode has been unable to correctly handle paths with different case since a certain version.
A quick fix is to make chunkname use the same path as VSCode, including case.
YES! That was it! I really wish Windows was case sensitive like the rest of the world. Anyway, I changed the case of the chunkname and it works.
Thank you so much for looking into this!!
I'm having this issue with the mpv media player.
@stax76 Please open a new issue.
OK, when I do, I will provide much more details.
Whenever I hit a breakpoint, I get no visual indication of hitting that breakpoint except that it places my cursor on the appropriate line. The callstack, variables, and everything else works as intended, but there's no indication in the code itself (no yellow highlight or anything).
This is a screenshot of me at a breakpoint:
Here is my configuration: