Skip to content

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

Closed
mmarczell-graphisoft opened this issue Mar 21, 2024 · 4 comments
Closed

My breakpoints are not being hit #4

mmarczell-graphisoft opened this issue Mar 21, 2024 · 4 comments

Comments

@mmarczell-graphisoft
Copy link

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?)

@NickelWenzel
Copy link

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.

@mmarczell-graphisoft
Copy link
Author

my C++ sources are not appearing under "Loaded scripts".

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.

@connor4312
Copy link
Member

You might be running into a race setting breakpoints which should be fixed in nightly by microsoft/vscode-js-debug#2102

@connor4312
Copy link
Member

Closing this because it's fairly old, but if that doesn't solve your issue let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants