当前位置:网站首页>How vscode debug nodejs
How vscode debug nodejs
2022-07-24 14:26:00 【Did lemon study today】
node.js Official instructions for commissioning :Debugging - Getting Started | Node.js
The importance of debugging is self-evident , There are also various methods , Here's just one vscode A simple and intuitive method on .
Method 1 : Direct debugging
1. Switch to debugge Pattern , Direct breakpoint debugging ;

Method 2 : By adding a configuration file launch.json To debug ;
1. Click to create directly launch.json:

2. To configure launch.json :
{
// nodemon To configure
"version": "0.2.0",
"configurations": [
{
// Type of debugger
"type": "node",
// Request configuration type , It can be for launch( start-up ) or attach( additional )
"request": "launch",
// Configuration name , It will be displayed in the drop-down menu of startup configuration , The exemption is consistent with other items
"name": "nodemon",
// Set the executable file path at run time , The default is node
"runtimeExecutable": "nodemon",
// The path to the executable or source code to run
"program": "${workspaceFolder}/index.js",
// Whether to actively restart debugging
"restart": true,
// Specify the location of program output : Integrated terminal
"console": "integratedTerminal",
// Define the display of the debug console
"internalConsoleOptions": "neverOpen"
}
]
}3. Make a small red dot in front of the place that needs debugging , Click the green triangle or press F5 Start commissioning :

4. Enter debugging state :

边栏推荐
- Stack and queue - 20. Valid parentheses
- Rasa 3.x learning series -rasa fallbackclassifier source code learning notes
- The spiral matrix of the force buckle rotates together (you can understand it)
- 北京一卡通以35288.8529万元挂牌出让68.45%股权,溢价率为84%
- Machine learning practice notes
- 交换
- Csp2021 T3 palindrome
- CSDN garbage has no bottom line!
- Mmdrawercontroller gets the current VC for push and pop
- Mmdrawercontroller first loading sidebar height problem
猜你喜欢

5年接触近百位老板,身为猎头的我,发现升职的秘密不过4个字
![Rasa 3.x learning series -rasa [3.2.4] - 2022-07-21 new release](/img/1e/27f107d514ded6641410cc5a45764b.png)
Rasa 3.x learning series -rasa [3.2.4] - 2022-07-21 new release

Notes on the use of IEEE transaction journal template

Mini examination - examination system
![The solution to the error of [installation detects that the primary IP address of the system is the address assigned by DHCP] when installing Oracle10g under win7](/img/25/aa9bcb6483bb9aa12ac3730cd87368.png)
The solution to the error of [installation detects that the primary IP address of the system is the address assigned by DHCP] when installing Oracle10g under win7

Dialog manager Chapter 2: create frame window

Deep learning 1 perceptron and implementation of simple back propagation network

Class loading mechanism and parental delegation mechanism

Regular expression and bypass cases

Simple understanding and implementation of unity delegate
随机推荐
Dameng real-time active and standby cluster construction
[C language note sharing] - dynamic memory management malloc, free, calloc, realloc, flexible array
Ztree tree Metro style mouse through the display user-defined controls add, edit, delete, down, up operations
CSDN garbage has no bottom line!
PCA of [machine learning]
Caffe framework and production data source for deep learning
Solve the problem of repeated clicking of button uibutton
Comparison of traversal speed between map and list
[oauth2] IV. oauth2authorizationrequestredirectfilter
Detailed explanation of address bus, data bus and control bus
Stack and queue - 20. Valid parentheses
TypeError: 'str' object does not support item assignment
5年接触近百位老板,身为猎头的我,发现升职的秘密不过4个字
MySQL community download address
JS get object attribute value
字符串——28. 实现 strStr()
ISPRS2018/云检测:Cloud/shadow detection based on spectral indices for multi/hyp基于光谱指数的多/高光谱光学遥感成像仪云/影检测
Introduction to Xiaoxiong school
电赛设计报告模板及历年资源
AtCoder Beginner Contest 261E // 按位思考 + dp