Created
October 3, 2013 13:59
-
-
Save subtleGradient/6810278 to your computer and use it in GitHub Desktop.
Use node-inspect Blink inspector GUI with Photoshop-node.
Tested on Mac OS X. I'm not sure how to do it on Windows yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| kill -s USR1 `pgrep -l Photoshop-node|cut -d" " -f1` | |
| (sleep 1; open -a 'Google Chrome' http://127.0.0.1:8080/debug?port=5858)& | |
| node-inspector |
Author
Author
And activate Generator in the Photoshop Plug-Ins Preferences also.
The easiest way to enable the node debugger in a Generator extension on Windows is to add process._debugProcess(process.pid) to the top of your main file. (You can also do this on mac). Then, all you need to do is launch node-inspector and open Chrome at the URL that node-inspector prints out.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need to
npm install -g node-inspectorfirst of course.