0

In general we start a node process in debug mode like this

node --debug=5858 server.js

How to start debug mode in a already started node process using code or sending SIGUSR1 signal to node process.

I want to start debug mode without using any command line.

This question is totally different than "already asked question". Its very shameful thing that people are tagging this question as already asked without understanding the question standard way.

Rishi
  • 123
  • 10
  • What platform are you running Node.js on? – Brad Oct 27 '16 at 23:34
  • @Brad I am using mac os. but i don't think its depend on platform! – Rishi Oct 27 '16 at 23:34
  • 1
    http://stackoverflow.com/questions/13052548/node-js-how-to-attach-to-a-running-process-and-to-debug-the-server-with-a-conso – njha Oct 27 '16 at 23:41
  • @ReverseCold I don't know why you tagged my question as your one! There is huge difference between both. – Rishi Oct 27 '16 at 23:49
  • "How to start debug mode in a already started node process using code" To me that looks the same. You can use tmux or just open another shell to get a command line. If you tell us why you don't want to use the command line then maybe there's a better solution. – njha Oct 28 '16 at 00:03
  • @ReverseCold What if i want to run debug on different port than 5858? What if i want to run multiple node process with debug in different different port? I clearly said that i don't wanna use command line. I want to signal the process. What if 'kill' not working ? I want a standard solution, not just trick. – Rishi Oct 28 '16 at 00:15

0 Answers0