Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome debugger skip breakpoint

I am currently trying to debug a js script in chrome, I put a breakpoint in the script and it breaks properly when I use only one tab, but on a second tab it doesn't break even though I see the break point in the code.

like image 449
maazza Avatar asked Jun 12 '13 07:06

maazza


1 Answers

Did you use the pretty print option when viewing the source:

enter image description here

I have noticed that the formatted copy can get out of sync. I remove all of the breakpoints, close both the formatted tab and the original tab (in sources), then open the original, click the pretty print option, and add back my break points.

I haven't looked in depth as to why this is happening, it's just what I've experienced and the work around I found (assuming it's something with the cached version of the formatted source).

like image 123
R. McIntosh Avatar answered Sep 19 '22 04:09

R. McIntosh