Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support use of node-inspector with --debug #13

Closed
darvelo opened this Issue · 4 comments

3 participants

@darvelo

If node is run with the --debug flag it'll allow a remote debugger like node-inspector to work (in this case with WebKit Inspector). I'm not sure if this is currently supported.. I see something about debug-brk in the Readme but I'm unclear as to if it's related. I tried using forever-monitor options with:

monitor: {
  options: ['--debug'],
}

..but no joy. Not sure if I'm just doing something wrong or if it's not possible. Advice is appreciated. Thanks. :)

@blai
Owner

if you put your grunt-express setting like following, you can debug from a remote debugger that is listening to port 5858

grunt.initConfig({
  express: {
    server: {
      options: {
        ...
        'debug-brk': 5858
      }
    }
  }
});
@darvelo

Thank you, kind sir.

@darvelo darvelo closed this
@benjaminkitt

Is this option still available? It isn't working for me...

@blai
Owner

No, since 1.0 grunt-express uses grunt-contrib-watch to manage the server (and its start/stop), so you no longer need to use something like debug-brk, you simply set the spawn to false (so the server is run in the same process of the grunt itself) and your breakpoint would work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.