rendrjs / rendr

Render your Backbone.js apps on the client and the server, using Node.js.
MIT License
4.09k stars 312 forks source link

Debugging an Example app #516

Open joshglenn opened 8 years ago

joshglenn commented 8 years ago

So I have installed on my local test system the 00 example. It builds and runs just fine. However, I want to learn more about how rendr works. So I was wanting to step through the code in the debugger. (Note: I haven't debugged in node before, but I have in various other technologies)

So, I installed node-inspector, which lets me debug using chromes devtools. The problem is, I'm not sure where or how to attach the debugger. For instance, the node-inspector instructions say to issue a command like this node-debug app.js. When I start the example app, I do so by issuing grunt server. Thus the confusion.

Any ideas on what to issue as the command here in order to debug the rendr example?

joshglenn commented 8 years ago

Ok. So I figured out how to do this. I realize too I probably should have posted this in the google group.

The solution to this was simple:

node-debug index.js

Works like a charm.