Javascript debug with chrome, debugged files are "read only"

Version :  Idea 2021.1 Ultimate Edition

When I debug a Javascript project in chrome and add a "line breakpoint", Intellij will systematically open a "read only" version of the file, even if the original file is already opened.
This nearly never happened before version 2021.1

Want can I do so I don't have these "read only files" opened, and have Intellij using my "original" files ?

2 comments
Comment actions Permalink

This usually means that the debugger can't map actual source files to the runtime version. Are you using sourcemaps, or is the executed code identical to the one being run? In the latter case, providing URL mappings in the JavaScript Debug run configuration may help. See https://www.jetbrains.com/help/idea/2021.1/debugging-javascript-on-an-external-server-with-mappings.html#ws_js_debug_on_remote_server_mappings

0
Comment actions Permalink

That was it, many thanks, as always your answer was very helpful

I just added a few directory mappings.

1

Please sign in to leave a comment.