Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code open file readonly on breakpoint

I have been using VS Code for many years now and all of a sudden last week all my nodejs projects will open a readonly file when encountering a debugger or breakpoint.

How do I disable this new unwanted functionality that has been forced upon me?

  • The path for the original file and readonly file are EXACTLY the same.
  • It effect all my individual unrelated nodejs projects. So it is not the launch config or something with the project files. It must be some global VS Code setting.
  • I have no additional addons or modules or whatever they are called installed in VS Code other than what it came with for nodejs.

Thanks, Ryan

like image 688
Ryan Lee Avatar asked Jul 19 '26 15:07

Ryan Lee


1 Answers

https://github.com/microsoft/vscode/issues/132307

tldr: set enableContentValidation: false in the launch config

like image 169
Ryan Lee Avatar answered Jul 22 '26 10:07

Ryan Lee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!