rtd icon indicating copy to clipboard operation
rtd copied to clipboard

how to set up debugger ?

Open AdrienLemaire opened this issue 10 years ago • 3 comments

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 ?

AdrienLemaire avatar Feb 03 '14 22:02 AdrienLemaire

Are you wanting to debug a unit test?

samhatoum avatar Feb 06 '14 22:02 samhatoum

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

samhatoum avatar Feb 06 '14 22:02 samhatoum

oh I see. It would probably help :) thanks

AdrienLemaire avatar Feb 06 '14 22:02 AdrienLemaire