xolvio / rtd

DEPRECATED: The Test Runner for Meteor
164 stars 37 forks source link

how to set up debugger ? #125

Open AdrienLemaire opened 10 years ago

AdrienLemaire commented 10 years ago

Hi,

After some reading, it seems that in order to stop the execution of a script and get a shell open at a specific line, I need to run phantomjs like phantomjs --remote-debugger-port=9000, put a debugger; line in my code, and then when running grunt, open a browser at the correct port, and play in the js console.

But here, I'm not sure how to specify the remote-debugger-port option, and grunt does not stop at the debugger line.

Any idea how to do this ?

samhatoum commented 10 years ago

Are you wanting to debug a unit test?

samhatoum commented 10 years ago

You could try using chrome instead of phantom and just do it in the console. Would that help?

AdrienLemaire commented 10 years ago

oh I see. It would probably help :) thanks