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.
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 ?