LoginSignup
2
3

More than 5 years have passed since last update.

node-inspectorで普段のPORT設定でExpressをデバッグする

Posted at

サーバーをデバッグオプション付きで起動する。ポートも指定できた。

PORT=8080 node --debug bin/www and then start the node-debugger bin/www

次にnode-inspectorを起動、デフォルトで8080を使おうとするので指定してあげる。指定しないと先のサーバーが8080なのでinspectorがコケる。

node-inspector --web-port=8081

親切にデバッグページを教えてくれるのでその通りのURLをブラウザに貼り付ける

Visit http://127.0.0.1:8081/debug?ws=127.0.0.1:8081&port=5858 to start debugging.
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3