a simple plugin for sublime text2/3 to debug node file in WebKit based browser.(Similar to node-debug
)
- node.js
- npm
- node-inspector
- A WebKit based browser: Chrome, Safari, etc. (make sure it's default browser!)
-
install node-inspector (global mode) with npm
$ npm install -g node-inspector
ps: if you have trouble with node-inspector when installing in windowxp or window7, you can find answer in this link: Installing node-inspector on Windows or update npm version .
-
download and unzip it (rename to 'Nodejs Debug'). open the packages folder by clicking the Preferences > Browser packages... entry in your sublime text. then copy unziped folder in this folder.
-
open a node.js file in sublime text
-
press ctrl+alt+b or click item 'Nodejs Debug' on contextmenu
then you can debug your code in browser .