Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created October 3, 2013 13:59
Show Gist options
  • Select an option

  • Save subtleGradient/6810278 to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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
@subtleGradient

Copy link
Copy Markdown
Author

You'll need to npm install -g node-inspector first of course.

@subtleGradient

Copy link
Copy Markdown
Author

And activate Generator in the Photoshop Plug-Ins Preferences also.

@joelrbrandt

Copy link
Copy Markdown

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