How do I kill a Javascript script? -
i'm trying debug bunch of functions redirect user. want "kill" script while it's running to read output of console.log(). can't use simple return
because there many functions work together.
set breakpoint @ spot in code want pause. if add debugger
statement in code browsers support automatically stop @ point , open debugger (actually think browsers (chrome?) may ignore statement unless have console/dev tools open, can start dev tools open if necessary).
Comments
Post a Comment