-
Notifications
You must be signed in to change notification settings - Fork 119
Conversation
Related to #220 |
Thanks for the contribution! So to understand this PR correctly, it adds a temporally cache of inline sources from the stack frames? Please incorporate the feedback from #220 (comment) There's currently a pending question on 0 vs 1-indexing for eval |
Before my PR, you could see a 'VM...' file displayed with the transpiled source generated at runtime for eval code. It seems to work as expected from my quick tests, but the remaining problem is to find a way to display the dynamically generated code in the UI when we want to inspect the transpiled code for example. |
I'd like to leave this open until I have a little time to dig into what chrome devtools actually does in this case. I have all the same info they do. I suspect you're right about adding an arbitrary line offset to these scripts, but I'd like to understand it a little better before I merge it. |
No problem. I use vscode node-debug2 with my customized vscode-chrome-debug-core for nodejs and chrome devtools for web development. |
Finally,
after https://github.com/Microsoft/vscode-chrome-debug-core/blob/master/src/transformers/baseSourceMapTransformer.ts#L178 without success. For info I close the PR, but I hope you will continue the discussion and share your opinion about this subject. |
I don't understand. What do you mean by "unreachable"? Are you describing the same issue as before, or a new one? Any breakpoint that can be bound by Chrome should still be returned, and grayed out in the UI, with some useful message. |
Finally, I found a way (or a hack !) to solve the problem of this boring
So, now there is a shift between the generated code and chrome parsed code. vscode-chrome-debug-core maps the generated code, then send the resulting breakpoints to chrome debugger. But we need to shift the first lines to tell chrome debugger to stop at the right position.
I added the shift to
In
I combine all with #252 column number mapping addition and I'm getting the breakpoints back with the exact same position (for both line and column). I think it could only work with nodejs for now, so maybe you will have better ideas to deal with this line shift problem:
Thank you for your opinion and your help. |
|
No description provided.