0

Debugging models

Hi

I was wondering if anyone had any luck debugging server-side using node-inspector or something similar?

I'm trying to connect using

node --debug ./node_modules/mojito/lib/mojito start

but when I try to view the debugger at

<http://127.0.0.1>:8989/debug?port=5858

I get an ECONNREFUSED error

Is node running with --debug port 5858

by
6 Replies
  • Hi,

    I was able to debug server side with node-inspector.

    Try running your mojito app like this instead:

    node --debug server.js
    1
  • Perfect, just the job :)

    Many thanks Dodo.

    0
  • @Joe, can you add this info to the doc?

    0
  • I may have spoke too soon, or, more likely, am just misunderstanding something fundamental.

    Running the app as Dodo suggested lets me see my server side scripts, set breakpoints etc but how do I then run the client side of my app. If I try viewing it I just get the response CANNOT GET /

    0
  • Can you view the client side of your app when your are not debugging ? Did you define your routes (correctly, http://developer.yahoo.com/cocktails/mojito/docs/code_exs/route_config.html ) ?

    0
  • @Caridy Sure, will add an FAQ and a note in command-line reference.

    0

Recent Posts

in Yahoo! Mojito