Home > Article > Development Tools > Let's talk about how to configure the JS debugging environment based on Node.js in VSCode
How to configure the debugging environment in VSCode? The following article will introduce to you how to configure VSCode to configure JavaScript-based Node.js debugging environment. I hope it will be helpful to you!
Preface: After doing scientific research, it is rare to Summarizing and accumulating, it may be that the solutions to problems that arise in scientific research are more diverse and flexible. Let alone, it is just laziness hahahahaha. It’s no longer necessary to write a blog to record the environment configuration after doing front-end work. Okay, let’s stop talking nonsense and start the text.
The environment configured in this article are mainly for breakpoint debugging of individual JS files, mainly to debug the code in LeetCode.
My environment:
I won’t go into details about the download of VScode. I will mainly record the installation of Node (in fact, I have installed it many times before). [Recommended learning: vscode tutorial, Programming teaching]
https://nodejs.org/ en/
node -v
and npm -v
on the command line. If the version number is displayed, the installation is successful. , and already have the correct environment variables. , and the other is the JS syntax prompt
JavaScript(ES6) code snippets.
attribute to
${file}, so that the currently debugged file can be identified. There is no need to change the file name here every time. Just F5 to debug the file.
A little emotion: For this year’s autumn recruitment work, the front-end learning journey has begun again. If you want to do your job well, you must first sharpen your tools, so I have to start writing a blog about configuring the environment. As expected, the next article will be about configuring Vue in VSCode. I wrote a banlakeji article during my internship which was not very good, so now I have to go through it again and complete it. Since you have chosen to work in technology, you have to keep doing it down-to-earth. If you can't love one line of work, you have to do one line of work, love one line of work as much as possible, and rush!
For more knowledge about VSCode, please visit: vscode Basic Tutorial!
The above is the detailed content of Let's talk about how to configure the JS debugging environment based on Node.js in VSCode. For more information, please follow other related articles on the PHP Chinese website!