Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove or stop auto generating debug.log file in vscode?

I'm working with nextjs project on the vscode. From a few days ago, debug.log file generated automatically for any directory where I'm working with. I want to stop generating this debug.log automatically, or at least want to know how to add this debug.log to the gitignore. I added .log, debug.log, **/debug.log, but gitignore don't works.

like image 476
Yuji Avatar asked Sep 20 '20 02:09

Yuji


People also ask

How do I turn off debug mode in VS Code?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.

How do I stop VS Code?

You can terminate with the Trash icon like you do, or press Ctrl + C . That's the shortcut from the default Terminal application and it also works in Visual Studio Code.

What is launch json in VS Code?

A launch. json file is used to configure the debugger in Visual Studio Code. Visual Studio Code generates a launch. json (under a . vscode folder in your project) with almost all of the required information.


1 Answers

Maybe you need to remove cached *.log files in your project by running git rm --cached *.log, then stage your .gitignore file using git add .gitignore or you can use git add .

My reference: How to use gitignore command in git

like image 144
Almantera T Al Faruqi Avatar answered Sep 27 '22 15:09

Almantera T Al Faruqi