-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
unable to debug nodejs code written in es6 + async await and transpiled with babel. #19973
Comments
@talarari please try our new node debugger by setting "type" to "node2" and see whether this makes a difference. |
No, doesn't help. Regular es6 works fine, the problem is debugging asyc await. |
I'm not sure we can do any better than this, the sourcemap output looks screwy. Is it better in any other debugger? |
Actually, I think this could be fixed by microsoft/vscode-chrome-debug-core#112. But it's only an issue because the babel sourcemappings are really weird. Where you have |
any update on this? |
I have followed by the instruction of this, it seems that when I try to step into next line after await in a async function, the breakpoints will break in unexpected places. |
Hi guys! Any news about it? Thanks! |
microsoft/vscode-chrome-debug-core#112 was closed awhile ago and the experience should be better now. Would appreciate if someone can try it out and let me know. |
Steps to Reproduce:
npm run build
to transpile code with babelnpm install
breakpoints will break in unexpected places, stepping into and over will go to unexpected places, basically debugging will not be possible.
vscode code has an awesome debugging experience, but faced with the option of debugging vs writing async-await code, the latter wins.
would really like to have both :)
i've tried many different setups and none worked.
any project setup that will work is fine by me (babel-node,building source before running, advanced versions of node , anything else you can think of).
if there is one that works, just fork my repo and make the needed changes.
any help will be greatly appreciated.
The text was updated successfully, but these errors were encountered: