webStorm 中使用 supervisor 調試




Name: supervisor app.js Path to node: <same> Node Parameters: /usr/local/lib/node_modules/supervisor/lib/cli-wrapper.js --exec /usr/local/bin/node --no-restart-on exit Working directory: <same> Path to Node App JS File: app.js

These paths are for Mac OS X 10.8 so you'll have to replace the above paths with paths on your machine. Next, you'll be able to run this in debug mode but it doesn't step through the code.node

For debugging you can either use the remote debugger or just have a different run target for debugging without using supervisor.app

相關文章
相關標籤/搜索