Debug nodejs with chrome devtools

chrome://inspect/#devices

$ node –inspect –debug-brk shifty
Debugger listening on ws://127.0.0.1:9229/705a62e5-3ba5-4b93-8ee6-d0c86419451b
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
(node:2580) [DEP0062] DeprecationWarning: node --inspect --debug-brk is deprecated. Please use node --inspect-brk instead.
Shifty
? > enc start
External notification consumer
Http server that stores the request body in directory named with todays date
-h help
-q quit
Starting HTTP listener
Listening on 8084
Debugger listening on ws://127.0.0.1:9229/705a62e5-3ba5-4b93-8ee6-d0c86419451b
For help see https://nodejs.org/en/docs/inspector
? > Debugger attached.
? >
Tell me something
? >
Received URL [/] @ 2018-01-08T10:36:41.334Z
Message from [::1]
{“host”:”localhost:8084″,”user-agent”:”curl/7.55.1″,”accept”:”/“,”content-type”:”application/json”,”content-length”:”9″}
{
“a”: “b”
}

https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27