sharpen the knife not by mistake woodcutters, good tools will let us debug a lot of convenience and fast.
in November 2019, Google Chrome 78 release. Js (which may have been available in earlier versions, but I didn’t)
The
entry is next to the familiar “element selection tool” and “device emulator” in the developer tools:
is also easy to use. Click the button, devtools-node. js will pop up, as shown in the figure below:
can Add connection by Add connection button, and create a new port listening, here I Add localhost:9999
(as shown below). You can also modify and delete existing links.
everything is ready to start debugging. debugger where you need to debug in NodeJs code. Then execute the command node --inspect=port your_script
, for example:
node --inspect=9999 message_list
if we run into an error like , inspector on 127.0.0.1:9229 failed: address already in use
try changing the port number.
all normal will automatically enter debugging mode:
Read More:
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- ERROR in ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js!./src/css/spec
- Install and uninstall under Linux system Node.js
- Node.js Cannot find module ‘mysql’ ‘express’
- NPM and Node.js Version incompatibility
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- node.js Server MySQL database connection timeout (error: connect etimeout)
- Error 2052/2053 when installing node.js in win
- Node.js Error: cannot find module ‘xxx’
- Node.js Using port 80 to report errors in Linux
- node.js Cannot find module “XXX” solution
- Node.JS “Cannot enqueue Handshake after invoking quit” Error (Fixed)
- Copy node causes NPM execution error: cannot find module ‘/ / lib / utils/ unsupported.js ‘
- node.js Error: write epipe problem solved!
- node.js Static resource acquisition failed
- [solution] Google Chrome browser hijacked by hao123 chrome://version Command line tampered
- Module build failed (from ./node_modules/postcss-loader/src/index.js):
- The garbage plug-in mixed in chrome causes an error in the front-end JS operation: only one instance of Babel Polyfill is allowed
- Node.js Medium package.json The difference between devdependences and dependencies
- Solve the problem that node. js USES MySQL to connect econnunion 127.0.0.0.1:3306