question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breakpoints open read-only file

See original GitHub issue
  • VS Code Version:
  • Log file (set "trace": true in launch config):

Steps to reproduce:

  1. 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"],
}
  1. Have VSCode Chrome Debugger extension enabled
  2. Set breakpoint (or add debugger) anywhere in your code
  3. Use website to hit the breakpoint
  4. 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
VandalPauliuscommented, May 22, 2020

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)

0reactions
connor4312commented, Aug 17, 2020

Please open a new issue and fill in the template @Slos https://github.com/microsoft/vscode-js-debug/issues/new/choose

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found