koush / vscode-quickjs-debug

QuickJS Debug Adapter for VS Code
MIT License
144 stars 27 forks source link

Launch quickjs is OK, but the breakpoint is not working #5

Open zopenge opened 1 year ago

zopenge commented 1 year ago

image image

setoutsoft commented 1 year ago

So do I. Does it depends on node.js? What is the function of "server" config in luanch.json?

yecate commented 1 year ago

https://github.com/koush/quickjs/blob/fe9aeaa703e3887866f3f32b217a27ee39b91268/quickjs-debugger.c#L420 After debugging, it is found that js_debugger_file_breakpoints always returns JS_TAG_UNDEFINED, maybe this is the reason?

yecate commented 1 year ago

https://github.com/koush/quickjs/blob/fe9aeaa703e3887866f3f32b217a27ee39b91268/quickjs-debugger.c#L420 After debugging, it is found that js_debugger_file_breakpoints always returns JS_TAG_UNDEFINED, maybe this is the reason?

I have identified the issue. The parameter "path" in "js_debugger_file_breakpoints" starts with an uppercase letter, while the "path" in "js_process_breakpoints" is lowercase. qjs

zeromake commented 9 months ago

@zopenge I noticed that your dotting path is windows, Is it compiled with mingw? the problem is in the windows path, lowercase path is required, QuickJS Debug extension breakpoint path is d:\xxxx\1.js, quickjs c breakpoint path is D:\xxxx\1.js. my fork is support windows msvc and mingw, debug is working.