rtd
rtd copied to clipboard
how to set up debugger ?
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 ?
Are you wanting to debug a unit test?
You could try using chrome instead of phantom and just do it in the console. Would that help?
oh I see. It would probably help :) thanks