Safari 9 Web inspector not displaying javascript during debugging

I have an issue with Safari 9 Web inspector script debugging when in El Capitan.

When running the web inspector and setting breakpoints on javascript, when the breakpoint is hit, the code is never displayed, just the spinning 'loading' animation is displayed in the pane where the code should be. This makes debugging impossible as the code isn't visible.


The same code debugged fine with Safari 8/Yosemite. Has anyone else seen this issue or found a resolution?

What are you inspecting? Safari, or your own application? Is it a legacy WebView or a WKWebView?


If what you are inspecting is a legacy WebView you may be encountering an issue with in-process debugging that is preventing the script content from loading. Stepping forward a few times in the debugger, or continuing and re-encountering the breakpoint should be a workaround that will let the content appear.


If you haven't already you should file a radar.

Thanks for the reply. Yes this is using a Webview not the WKWebView but behaves the same in Safari as well as in an embedded WebView. I've filed a detailed bug report with Apple.


You're right the code does re-appear on subsequent breakpoints, however this still means debugging things like DocumentReady is not possible as it's only hit once.

did you figure out the solution. I am having the same problem.:(

Nope moved on from this project, maybe later releases of Safari have fixed it?

Safari 9 Web inspector not displaying javascript during debugging
 
 
Q