-
timothy@apple.com authored
with a toggle buttons to enable or disable it. Reviewed by Adam Roben. * page/InspectorController.cpp: (WebCore::pauseOnExceptions): Call the InspectorController. (WebCore::setPauseOnExceptions): Ditto. (WebCore::InspectorController::windowScriptObjectAvailable): Add the new setPauseOnExceptions and pauseOnExceptions functions to the JS class. (WebCore::InspectorController::pauseOnExceptions): Call JavaScriptDebugServer. (WebCore::InspectorController::setPauseOnExceptions): Ditto. * page/InspectorController.h: * page/JavaScriptDebugServer.cpp: (WebCore::JavaScriptDebugServer::setPauseOnExceptions): Set m_pauseOnExceptions. (WebCore::JavaScriptDebugServer::exception): Check m_pauseOnExceptions and set m_pauseOnNextStatement to true before calling pauseIfNeeded. * page/JavaScriptDebugServer.h: * page/inspector/Images/pauseOnExceptionButtons.png: Added. * page/inspector/ScriptsPanel.js: Adds a status bar button that calls the new InspectorController functions. * page/inspector/inspector.css: New styles. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
57442fcd