-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
[node-debugger] Debugger spams "Could not read sourcemaps" messages #102042
Comments
Thanks for the issue, this message was added in microsoft/vscode-js-debug#483, and matches what happens in the web browser if Chrome fails to resolve sourcemaps. (However, in Chrome you can toggle these messages, where our debug console has no such control.) You can configure whether we resolve sourcemaps by specifying the new
👍 this comment/issue if you'd like a setting to toggle off these messages. |
@connor4312 thank you very much for the rapid answer! 😄 |
It's good here. I'll direct people to it as needed 🙂 |
@connor4312 I, btw, just gave it a go before - your recommended configuration works like a charm! Instead of having an option to disable source-map messages I'd prefer to have these messages disabled for |
Currently, the old debuggers are "forwarding" the request to the new debugger (microsoft/vscode-js-debug#548). They don't know about the new options, but will pass them through. You can change the debug |
We've had quite a few people opening issues about this. The root problem is not the spam, but errors about files you don't care about. If a source map failed for a file you did expect to debug, it would not be desirable to hide that information. I think it's reasonable to just disable sourcemaps within node_modules by default; if users need them, they can configure the |
@connor4312 Is the |
Something there is. If the locations list is left at null, we'll resolve all sourcemaps without checking paths. With it specified, we require the sourcemap to match one of the patterns. But one alternative closer to parity is to set it to |
I also experienced this issue and can verify the fix. I would strongly consider making this setting the default |
Thanks for the feedback. It will be the default on the upcoming nightly build. I will also aim to get this in the upcoming recovery release. |
Where should I put the configuration? |
Into your Keep in mind to change the |
@manuth Thanks, buddy! Works like a charm. |
in launch.json,
AND restart vscode, and it's solved. |
|
@pyuyu can you capture a trace log using these instructions?
|
Verification steps:
|
there is no more |
You may be hitting #102152. If not, please capture a trace log using the instructions I sent you. |
thanks a lot, set |
Steps to Reproduce:
.js
-files containing//# sourceMappingURL=[...]
Does this issue occur when all extensions are disabled? Yes
Expected behavior
Just like in the previous version of VSCode, missing source-map files should not be reported (should they...?).
Actual behavior
VSCode reports an error for every missing source-map files (even the ones inside the
node_modules
folder). This makes reviewingmocha
debug sessions quite hard.Screenshot
The text was updated successfully, but these errors were encountered: