How can I remove VS code debugger?

Viewed 7085

Im developing React Native app with Visual Studio Code now, but something like a debugger, I dont know what is called, appeared in code somehow.

I think this is a function of VS code. I want to remove debugger from my package.json, but I can't search solutions because I don't know what it is called..

this debuger appeared

this debuger appeared

when I press this, search window appear

enter image description here

Someone know how can I remove this? Thank you your answers!

my env VS Code: v1.47.2 Macbook Pro OS:Catalina 10.15.4

1 Answers

Possible duplicate: How to disable `Debug` from showing in package.json

To remove (or "delete") the debugger open the VSCode settings file and add or modify this line:

 "debug.javascript.codelens.npmScripts": "never",

or

enter image description here

Anyway, that is just a function for you to quickly launch the debugging session. Nothing added to your code.

When you press "debug", because you don't specify which script to run, VSCode shows you a list of options for you to choose. Use the up and down buttons to select.

If you hover your mouse a script, a small "tooltips" appear, click on it to run the script under the mouse.

enter image description here

In this picture, if I click Run Script, the terminal windows will run npm run compile

Related