Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug at terminal? like nodejs debug? #3767

Closed
TangMonk opened this issue Dec 31, 2014 · 3 comments
Closed

debug at terminal? like nodejs debug? #3767

TangMonk opened this issue Dec 31, 2014 · 3 comments

Comments

@TangMonk
Copy link

I offen use $ node debug app.js to debug nodejs application and into REPL :

< debugger listening on port 5858
connecting... ok
break in app.js:1
  1 global.root = __dirname;
  2
  3 var config = require('./config/config.js');
debug>
(^C again to quit)
debug>

the CoffeeScript official document shows:

http://i.imgur.com/dUqDP9w.png

So i type: $ coffee --nodejs --debug index.coffee

but nothing happend

@caseyWebb
Copy link

Install and run node-inspector, then run $ coffee --nodejs --debug index.coffee and point your browser to the url node-inspector gives, generally localhost:8080/debug?port=5858

As far as debugging directly in the terminal, I don't think that is supported.

@TangMonk
Copy link
Author

TangMonk commented Jan 4, 2015

@caseyWebb , thanks for your reply.
I installed node-inspector:

Node Inspector v0.8.1

But when I run coffee --nodejs --debug index.coffee, and terminal show:

$ coffee --nodejs --debug index.coffee
debugger listening on port 5858
$ 

But nothing happed

@caseyWebb
Copy link

@TangMonk That allows the debugger which runs in the browser to connect to the app. In another terminal tab, run node-inspector and go to localhost:8080/debug?port=5858 in your browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants