OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 if (location) | 669 if (location) |
670 m_frontend->breakpointResolved(it->key, location); | 670 m_frontend->breakpointResolved(it->key, location); |
671 } | 671 } |
672 } | 672 } |
673 | 673 |
674 void InspectorDebuggerAgent::failedToParseSource(const String& url, const String
& data, int firstLine, int errorLine, const String& errorMessage) | 674 void InspectorDebuggerAgent::failedToParseSource(const String& url, const String
& data, int firstLine, int errorLine, const String& errorMessage) |
675 { | 675 { |
676 m_frontend->scriptFailedToParse(url, data, firstLine, errorLine, errorMessag
e); | 676 m_frontend->scriptFailedToParse(url, data, firstLine, errorLine, errorMessag
e); |
677 } | 677 } |
678 | 678 |
679 void InspectorDebuggerAgent::didPause(ScriptState* scriptState, const ScriptValu
e& callFrames, const ScriptValue& exception) | 679 void InspectorDebuggerAgent::didPause(ScriptState* scriptState, const ScriptValu
e& callFrames, const ScriptValue& exception, const Vector<String>& hitBreakpoint
s) |
680 { | 680 { |
681 ASSERT(scriptState && !m_pausedScriptState); | 681 ASSERT(scriptState && !m_pausedScriptState); |
682 m_pausedScriptState = scriptState; | 682 m_pausedScriptState = scriptState; |
683 m_currentCallStack = callFrames; | 683 m_currentCallStack = callFrames; |
684 | 684 |
685 if (!exception.hasNoValue()) { | 685 if (!exception.hasNoValue()) { |
686 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptF
or(scriptState); | 686 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptF
or(scriptState); |
687 if (!injectedScript.hasNoValue()) { | 687 if (!injectedScript.hasNoValue()) { |
688 m_breakReason = InspectorFrontend::Debugger::Reason::Exception; | 688 m_breakReason = InspectorFrontend::Debugger::Reason::Exception; |
689 m_breakAuxData = injectedScript.wrapObject(exception, "backtrace")->
openAccessors(); | 689 m_breakAuxData = injectedScript.wrapObject(exception, "backtrace")->
openAccessors(); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 void InspectorDebuggerAgent::reset() | 771 void InspectorDebuggerAgent::reset() |
772 { | 772 { |
773 m_scripts.clear(); | 773 m_scripts.clear(); |
774 m_breakpointIdToDebugServerBreakpointIds.clear(); | 774 m_breakpointIdToDebugServerBreakpointIds.clear(); |
775 if (m_frontend) | 775 if (m_frontend) |
776 m_frontend->globalObjectCleared(); | 776 m_frontend->globalObjectCleared(); |
777 } | 777 } |
778 | 778 |
779 } // namespace WebCore | 779 } // namespace WebCore |
780 | 780 |
OLD | NEW |