strongloop / strong-pm

deployer for node applications
http://strong-pm.io
Other
1k stars 71 forks source link

"dbg-start" failed with Error: Cannot load the debugger module. #406

Closed georgefloros closed 7 years ago

georgefloros commented 7 years ago

Hi , i have deploy my API on a Centos 7 server. When i try to attach the debugger on a worker using the the following command :

"slc ctl -C http://<username>:<password>@xxx.xxx.xxx.xxx dbg-start x.x.xxxx"

i get the error :

Command "dbg-start" on "http://<username>:<password>@xxx.xxx.xxx.xxx" failed with Error: Cannot load the debugger module.

Any suggestions ? Thnks in advance .

sam-github commented 7 years ago

That command was being worked on, but is no longer implemented, or being worked on. Since @bajtos was working on it, node has switched to the inspect protocol, and there have been many other changes.

georgefloros commented 7 years ago

@sam-github thank you for your immediate response ! Would be too much , if i asked for your guidance on how i could attach the debugger using strong pm?

sam-github commented 7 years ago

https://nodejs.org/en/docs/guides/debugging-getting-started/

You can't use the --inspect CLI option, you have to send SIGUSR1, as described in the bottom of this section: https://nodejs.org/en/docs/guides/debugging-getting-started/#enable-inspector