Home > Net >  Does "node inspect" have any config file similar to .gdbinit?
Does "node inspect" have any config file similar to .gdbinit?

Time:01-28

I debug javascript with "node inspect" ( not "node --inspect") command, and have many "setBreakpoint" command.

Is there any config file to write the commands similar to .gdbinit?

The manual: https://nodejs.org/api/debugger.html

Thanks.

I debug javascript with "node inspect" ( not "node --inspect") command, and have many "setBreakpoint" command.

Is there any config file to write the commands similar to .gdbinit?

The manual: https://nodejs.org/api/debugger.html

Thanks.

CodePudding user response:

This repo https://github.com/node-inspector/node-inspector.git isn't the "node inspect", it seems need to install.

CodePudding user response:

There is no config file similar to .gdbinit that can be used with the "node inspect" command. However, you can use the --debug-brk option with the node command to set breakpoints before the application starts. Additionally, you can use the debug command within the Node.js inspector to set breakpoints and perform other debugging tasks, Good luck

  • Related