Whenever i set a breakpoint on a javascript file it opens an annoying window which is a copy from the original file, its written [dynamic]
and its not editable:
How do i disable this thing?
Im debugging a nodejs project not web.
I already tried unchecking the option enable javascript debug for asp.net (chrome, edge, and ie).
but it continues openning that window.
Visual Studio 2022
Additional info:
2
Answers
Enjoy!
It usually happens when you have made changes in the code after the last restart of your nodejs application.
For example. You started you nodejs server with
npm start
. then goto VS Code and change a part of codeHere when u attach a debugger to nodejs it has to attach to the instance of code where u did
npm start
. And hence it opens a new window with previous changes.To solve this: You just have to disconnect the debugger and restart ur nodeJS server.
If the above steps don’t solve it. You just have to kill the nodejs process running in background as I have observed many times that killing node server doesn’t sometimes kill the process. For linux, you can just use below command with nodejs port you are using to kill its process.
Example: