Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 15096004: Passing hit breakpoint IDs to ScriptDebugServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698