debugger.h
// -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef _KJSDEBUGGER_H_
#define _KJSDEBUGGER_H_
#include "interpreter.h"
namespace KJS {
class DebuggerImp;
class Interpreter;
class ExecState;
class Value;
class Object;
class UString;
class List;
class Completion;
class KJS_EXPORT Debugger {
public:
Debugger();
virtual ~Debugger();
DebuggerImp *imp() const { return rep; }
void attach(Interpreter *interp);
void detach(Interpreter *interp);
virtual bool sourceParsed(ExecState *exec, int sourceId,
const UString &source, int errorLine);
virtual bool sourceUnused(ExecState *exec, int sourceId);
virtual bool exception(ExecState *exec, const Value &value,
bool inTryCatch);
virtual bool atStatement(ExecState *exec);
virtual bool enterContext(ExecState *exec);
virtual bool exitContext(ExecState *exec, const Completion &completion);
private:
DebuggerImp *rep;
};
}
#endif

KDE Home | KDE Accessibility Home | Description of Access Keys