-
Notifications
You must be signed in to change notification settings - Fork 5
My breakpoints are not being hit #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just had the same problem and managed to solve/work around the issue. My setup is that i compile some C++ codebase using CMake the emscripten toolchain which generates two files a my_code.wasm with the corresponding my_code.js. For me breaking in the c++ code worked when first setting a breakpoint in the callMain function of the *.js file. I hope this helps. It would greatly improve the extension if this wouldn't be necessary or at least be documented. |
I looked a bit further and it seems that the issue might be related to multithreading / Web Workers. The extension seems to only load my sources in some but not all of my 20 workers. Therefore the breakpoint being hit depends on which thread hits it. |
You might be running into a race setting breakpoints which should be fixed in nightly by microsoft/vscode-js-debug#2102 |
Closing this because it's fairly old, but if that doesn't solve your issue let me know! |
My breakpoints are not getting hit and my C++ sources are not appearing under "Loaded scripts". However I have seen this working just a few minutes ago and it just broke unexplainably. What can I do to investigate what's happening?
(For example my WASM file, which includes the DWARF debuginfo, is over 400MB, because of a medium large codebase. Might this be the problem for the extension? Can the extension be instructed to print logs about errors encountered?)
The text was updated successfully, but these errors were encountered: