Breakpoints open read-only file
See original GitHub issue- VS Code Version:
- Log file (set
"trace": true
in launch config):
Steps to reproduce:
- Have generic launch.json config like
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome debug",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"disableNetworkCache": true,
"runtimeArgs": ["--incognito"],
}
- Have VSCode Chrome Debugger extension enabled
- Set breakpoint (or add
debugger
) anywhere in your code - Use website to hit the breakpoint
- VSCode opens new read-only file that has similar path to the original, has all same breakpoints, but is read-only. Although one thing to note is read-only file path starts with
~/Desktop
while for original VSCode shows/home/myUser/Desktop
System is: Ubuntu 19.10 Node v12.8.1 VSCode v1.45.1 Debugger for Chrome v4.12.7
Files are converted and served with Webpack and webpack-plugin-serve
Expected behaviour: Debugger continues to use same file with full edit support
Edit: https://github.com/VandalPaulius/code-examples I’ve created example repository for this
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
VS Code open file readonly on breakpoint - Stack Overflow
I have been using VS Code for many years now and all of a sudden last week all my nodejs projects will open...
Read more >When I hit a breakpoint vscode opens a new readonly version ...
Whenever I hit a breakpoint, vscode halts on a new "tab" with a readonly version of the file with the full path instead...
Read more >Javascript debug with chrome, debugged files are "read only"
When I debug a Javascript project in chrome and add a "line breakpoint", Intellij will systematically open a "read only" version of the...
Read more >Breakpoint gets placed in incorrect file - Visual Studio Feedback
Placing a breakpoint in one file causes the other file to open from a completely unrelated project and different app-domain. MS ppl please...
Read more >Script Editor - Bohemia Interactive Community Wiki
Files may be marked as read-only. Such script files can still be opened and read freely, but cannot be modified and saved.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for checking it 💯 Yes, I got it working just now. Was about write it in here. As always it was user error 😄 As you said it was sourcemap and webroot config issue. I will keep this repo on, so anyone that comes to this problem has some reference (even though setup in that repo is a bit unconventional)
Please open a new issue and fill in the template @Slos https://github.com/microsoft/vscode-js-debug/issues/new/choose