-
Notifications
You must be signed in to change notification settings - Fork 293
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
Slow processing of variables on hitting a breakpoint #1033
Comments
I've made a change so that we only request source content if |
Hi @connor4312 and thanks for your answer. |
You can now set |
I pinged the author for verification. You can also try the Launch Minified Program in the demo folder https://github.com/microsoft/vscode-js-debug/tree/main/demos/node. To verify:
|
@connor4312 Is there any followup ticket for the performance issue here? Disabling |
If you have any ideas on how to make sourcemap names mapping work better in a way that doesn't require requesting the compile script, I'm happy to hear it, but I don't think it's possible. |
Truthfully I don't know enough about this so these ideas may be nonsense. All I could think of would be to process the map files on a worker thread right away vs. waiting for the first breakpoint. Another thought would be some kind of cache with incremental processing of map files. |
Hello,
I'm a maintainer of React Native Tools VS Code extension. The extension is used for debugging React Native applications. Under the hood the extension uses
vscode-js-debug
debugger to debug javascript apps.Describe the bug
After the update of VS Code to the version 1.57.0 we detected that processing of variables on the first hitting of a breakpoint can take quite a long time. However further breakpoints hittings are handled fine. We found out that such behavior appeared after the implementation of
Support for renamed identifiers in sourcemaps
feature in this PR. We looked through CDP logs and revealed that nowjs-debug
retrieves the whole bundled code of the application (via "Debugger.getScriptSource" method) and processes it. We assume that this could take a long time.Jun-16-2021.10-48-45.mp4
To Reproduce
The issue can be reproduced using a node attach scenario, but it requires some preparations.
Steps to reproduce the behavior:
Debug Android
debugging configurationApp.js
file and set a breakpoint on the 62 line (return statement)Debug Android
debugging scenario and wait until you see something like this in Debug consoleReload
button.Attach
debugging scenarioAttach
scenario--inspect-brk
mode)Probable solution
We are not sure about the solution, but it might make sense to add a special parameter to debugging configurations to enable/disable the “Support for renamed identifiers in sourcemaps” feature. So, users can configure it if they really need additional processing of variables while debugging.
Log File
Js-debug logs:
vscode-debugadapter-f39647b7.json.gz
CDP logs:
currentCDPlogs.txt
previousCDPlogs_vs_code_1_56.txt
VS Code Version: 1.57.0
The text was updated successfully, but these errors were encountered: