-
Notifications
You must be signed in to change notification settings - Fork 578
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
Debug Emscripten translated C/C++ with source maps #20
Comments
Do you mean that this worked for you. If yes, make a vs code recipe and share it with others. |
Does this work with the cpptools extension installed? |
Can not debug for me on VS Code |
@hkleynhans I see no reason why this should not work if you have cpptools installed. However, you will have to know what you are doing if you want to translate this with emscripten and debug the result. cpptools are out of the loop here... |
@kinglezhuang "Can not debug for me on VS Code" is not a helpful bug descrption. |
js-debug needs to support this first. WebAssembly is no longer 'hacked into' the CDP protocol like before, duplicates microsoft/vscode-js-debug#853 |
WebAssembly is no longer 'hacked into' the CDP protocol like before, duplicates microsoft/vscode-js-debug#853 |
I tried to help a user debugging Emscripten translated C/C++ to JavaScript:
I compiled with:
The launch config for this looks like this:
In order to set breakpoints in *.c files (without having a C/C++ extension installed), I had to enable a special VS Code option for the workspace:
The source map looks like this:
As you can see the hello_world.c file is inlined in the source map.
The text was updated successfully, but these errors were encountered: