Reputation: 660
I just spent about an hour setting breakpoints in a few javascript files. Most likely I'll need to use these same breakpoints for a few days now and in between I'm required to power down my workstation.
Is there anyway that I can save this set of breakpoints somehow and in the morning just re-open them and have them all automagically reset?
Thanks,
Upvotes: 1
Views: 456
Reputation: 512
Just place "debugger;" in the place where you want breakpoints. After you are done programming, remove any "debugger;" so it doesn't go in production.
Edit: "debugger;" is a keyword that triggers a breakpoint in the browser's JS machine.
Upvotes: 2