billyzkid/nodebug — pull request #1 by kirbysayshi (2012-11-30 12:10:56+00:00)
Title: Chrome uses app mode, use global inspector, auto-close processes

Thanks for writing such a useful utility! I was looking through `npm search debug` and found this great script that helps me greatly. But when I attempted to use it, it errored immediately since I already had Chrome open.

So my additions now open a fresh, standalone instance of Chrome that uses a profile stored locally in the package directory. This allows for some cool things:

* The OS can target the app like any other, allowing for keyboard shortcuts like alt/cmd + tab to work
* nodebug can automatically close chrome without worrying about killing existing sessions

node-inspector is now assumed to be installed globally instead of contained within the package. I did this because the contained version was very old, and it's likely that if someone is thinking about using this script, they are using a newer version (or even master) anyway.

I have not tested this on windows, but am totally open to making changes in the event that something doesn't work (I'm assuming you're on windows because of the "unsupported platform" exception).

Let me know what you think!