source: webkit/trunk/JavaScriptCore/kjs/debugger.h@ 35900

Last change on this file since 35900 was 35037, checked in by [email protected], 17 years ago

2008-07-07 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Third step in broad cleanup effort.

[ File list elided ]

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1/*
2 * Copyright (C) 1999-2001 Harri Porten ([email protected])
3 * Copyright (C) 2001 Peter Kelly ([email protected])
4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 *
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.
10 *
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.
15 *
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
19 *
20 */
21
22#ifndef Debugger_h
23#define Debugger_h
24
25#include "protect.h"
26#include <wtf/HashSet.h>
27
28namespace KJS {
29
30 class ArgList;
31 class DebuggerCallFrame;
32 class ExecState;
33 class JSGlobalObject;
34 class JSObject;
35 class JSValue;
36 class SourceProvider;
37 class UString;
38
39 class Debugger {
40 public:
41 Debugger();
42 virtual ~Debugger();
43
44 void attach(JSGlobalObject*);
45 void detach(JSGlobalObject*);
46
47 virtual void sourceParsed(ExecState*, int sourceId, const UString& sourceURL,
48 const SourceProvider& source, int startingLineNumber, int errorLine, const UString& errorMsg) = 0;
49 virtual void exception(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
50 virtual void atStatement(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
51 virtual void callEvent(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
52 virtual void returnEvent(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
53
54 virtual void willExecuteProgram(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
55 virtual void didExecuteProgram(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
56 virtual void didReachBreakpoint(const DebuggerCallFrame&, int sourceId, int lineno) = 0;
57
58 private:
59 HashSet<JSGlobalObject*> m_globalObjects;
60 };
61
62} // namespace KJS
63
64#endif // Debugger_h
Note: See TracBrowser for help on using the repository browser.