How can I keep breakpoints on a refresh?

6,301 views
Skip to first unread message

da...@windward.net

unread,
Jul 30, 2013, 3:39:29 PM7/30/13
to google-chrome-...@googlegroups.com
Hi all;

I have various breakpoints set and have to do a refresh at times because I've edited my .js files to fix something. When I do that all the breakpoints are deleted in the debugger.

How can I have the debugger keep them?

thanks - dave

Addy Osmani

unread,
Jul 31, 2013, 8:37:06 AM7/31/13
to google-chrome-...@googlegroups.com, da...@windward.net
If you set your breakpoints, switch over to the Console tab, right-click and select 'Preserve log upon navigation', the breakpoints should be there when you refresh. Alternatively, you can use the JavaScript way to do this and inject 'debugger;' statements in your code.

addyo...@gmail.com

unread,
Jul 31, 2013, 6:30:44 PM7/31/13
to google-chrome-...@googlegroups.com, da...@windward.net
Hmm. In Canary it actually looks like your breakpoints will be saved on refresh without the steps below.

da...@windward.net

unread,
Aug 14, 2013, 5:46:22 PM8/14/13
to google-chrome-...@googlegroups.com, da...@windward.net
I just tried that - didn't work. Is there another way?

thanks - dave
Reply all
Reply to author
Forward
0 new messages