]>
git.saurik.com Git - apple/javascriptcore.git/blob - debugger/Debugger.h
2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
3 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
4 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 class DebuggerCallFrame
;
40 void attach(JSGlobalObject
*);
41 void detach(JSGlobalObject
*);
43 virtual void sourceParsed(ExecState
*, const SourceCode
&, int errorLine
, const UString
& errorMsg
) = 0;
44 virtual void exception(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
45 virtual void atStatement(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
46 virtual void callEvent(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
47 virtual void returnEvent(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
49 virtual void willExecuteProgram(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
50 virtual void didExecuteProgram(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
51 virtual void didReachBreakpoint(const DebuggerCallFrame
&, intptr_t sourceID
, int lineno
) = 0;
54 HashSet
<JSGlobalObject
*> m_globalObjects
;
57 // This method exists only for backwards compatibility with existing
58 // WebScriptDebugger clients
59 JSValuePtr
evaluateInGlobalCallFrame(const UString
&, JSValuePtr
& exception
, JSGlobalObject
*);