49 #include <private/qobject_p.h> 51 #include <QtScript/qscriptengine.h> 104 return d->responseHandler;
117 return d->messageHandler;
336 return frontend.
scheduleEvaluate(contextIndex, program, fileName, lineNumber);
356 return d->scheduler->scheduleCommand(command,
d->responseHandler);
361 int lineNumber,
int columnNumber)
365 d->messageHandler->message(
QtWarningMsg, text, fileName, lineNumber, columnNumber);
370 int lineNumber,
int columnNumber)
374 d->messageHandler->message(
QtDebugMsg, text, fileName, lineNumber, columnNumber);
379 int lineNumber,
int columnNumber)
383 d->messageHandler->message(
QtCriticalMsg, text, fileName, lineNumber, columnNumber);
389 return d->console->currentFrameIndex();
395 d->console->setCurrentFrameIndex(index);
401 return d->console->currentLineNumber();
407 d->console->setCurrentLineNumber(lineNumber);
413 return d->console->currentScriptId();
419 d->console->setCurrentScriptId(
id);
425 return d->console->sessionId();
431 return d->console->commandManager()->commandGroups();
437 return d->console->commandManager()->findCommand(name);
443 return d->console->commandManager()->commandsInGroup(name);
449 return d->console->commandManager()->completions(prefix);
460 d->console->setEvaluateAction(action);
int scheduleStepOver(int count=1)
Instructs the front-end to step over the next script statement, and returns a unique identifier assoc...
int getCurrentLineNumber() const
int scheduleDeleteScriptValueIterator(int id)
#define QT_END_NAMESPACE
This macro expands to.
int scheduleGetScriptData(qint64 id)
QScriptMessageHandlerInterface * messageHandler() const
QScriptDebuggerResponseHandlerInterface * responseHandler() const
qint64 getCurrentScriptId() const
QScriptDebuggerConsole * console() const
int scheduleDeleteScriptValueIterator(int id)
int scheduleGetBacktrace()
int scheduleGetScriptData(qint64 id)
void setCurrentFrameIndex(int index)
int scheduleSetBreakpoint(const QString &fileName, int lineNumber)
int scheduleCommand(const QScriptDebuggerCommand &command)
QScriptDebuggerConsoleCommandGroupMap getCommandGroups() const
int scheduleStepInto(int count=1)
void setEvaluateAction(int action)
void error(const QString &text, const QString &fileName=QString(), int lineNumber=-1, int columnNumber=-1)
int scheduleResolveScript(const QString &fileName)
int scheduleEvaluate(int contextIndex, const QString &program, const QString &fileName=QString(), int lineNumber=1)
int scheduleSetBreakpointData(int id, const QScriptBreakpointData &data)
The QString class provides a Unicode character string.
QScriptDebuggerConsoleGlobalObject(QObject *parent=0)
The QObject class is the base class of all Qt objects.
int scheduleGetThisObject(int contextIndex)
int scheduleGetContextInfo(int contextIndex)
void setConsole(QScriptDebuggerConsole *console)
int scheduleGetScriptsDelta()
int scheduleGetPropertiesByIterator(int id, int count)
~QScriptDebuggerConsoleGlobalObjectPrivate()
The QScriptDebuggerConsole class provides the core functionality of a debugger console.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int scheduleGetBreakpointData(int id)
int scheduleNewScriptValueIterator(const QScriptDebuggerValue &object)
int scheduleGetBacktrace()
void setScheduler(QScriptDebuggerCommandSchedulerInterface *scheduler)
int scheduleRunToLocation(const QString &fileName, int lineNumber)
int scheduleScriptValueToString(const QScriptDebuggerValue &value)
QScriptDebuggerConsoleGlobalObjectPrivate()
The QStringList class provides a list of strings.
void warning(const QString &text, const QString &fileName=QString(), int lineNumber=-1, int columnNumber=-1)
int scheduleScriptsCheckpoint()
bool checkSyntax(const QString &program)
static const char * data(const QByteArray &arr)
QScriptDebuggerConsoleCommandList getCommandsInGroup(const QString &name) const
int scheduleDeleteBreakpoint(int id)
int scheduleGetContextCount()
The QScriptBreakpointData class contains data associated with a breakpoint.
int scheduleSetBreakpoint(const QScriptBreakpointData &data)
int scheduleGetActivationObject(int contextIndex)
void setResponseHandler(QScriptDebuggerResponseHandlerInterface *responseHandler)
int scheduleNewScriptValueIterator(const QScriptDebuggerValue &object)
int scheduleGetBreakpointData(int id)
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
int scheduleDeleteAllBreakpoints()
int scheduleForceReturn(int contextIndex, const QScriptDebuggerValue &value)
The QScriptDebuggerValue class represents a script value.
QScriptDebuggerResponseHandlerInterface * responseHandler
int scheduleClearExceptions()
#define Q_DECLARE_PUBLIC(Class)
int scheduleGetThisObject(int contextIndex)
The QScriptDebuggerConsoleCommand class is the base class of console commands.
QScriptMessageHandlerInterface * messageHandler
void setMessageHandler(QScriptMessageHandlerInterface *messageHandler)
int scheduleDeleteBreakpoint(int id)
int scheduleClearExceptions()
int scheduleDeleteAllBreakpoints()
qint64 getSessionId() const
int scheduleStepOut()
Instructs the front-end to step out of the current script function, and returns a unique identifier a...
QStringList getCommandCompletions(const QString &prefix) const
void message(const QString &text, const QString &fileName=QString(), int lineNumber=-1, int columnNumber=-1)
int scheduleScriptValueToString(const QScriptDebuggerValue &value)
int getCurrentFrameIndex() const
int scheduleGetPropertiesByIterator(int id, int count)
static QScriptSyntaxCheckResult checkSyntax(const QString &program)
Checks the syntax of the given program.
int scheduleGetContextInfo(int contextIndex)
int scheduleGetContextCount()
int scheduleStepOver(int count=1)
QScriptDebuggerCommandSchedulerInterface * scheduler() const
QScriptDebuggerConsole * console
int scheduleScriptsCheckpoint()
int scheduleStepInto(int count=1)
Instructs the front-end to step into the next script statement, and returns a unique identifier assoc...
void setCurrentScriptId(qint64 id)
int scheduleGetBreakpoints()
int scheduleResolveScript(const QString &fileName)
QScriptDebuggerCommandSchedulerInterface * scheduler
QScriptDebuggerConsoleCommand * findCommand(const QString &command) const
int scheduleEvaluate(int contextIndex, const QString &program, const QString &fileName=QString(), int lineNumber=1)
void setCurrentLineNumber(int lineNumber)
int scheduleSetBreakpointData(int id, const QScriptBreakpointData &data)
int scheduleInterrupt()
Instructs the front-end to break at the next script statement, and returns a unique identifier associ...
int scheduleForceReturn(int contextIndex, const QScriptDebuggerValue &value)
static QString fileName(const QString &fileUrl)
int scheduleContinue()
Instructs the front-end to continue evaluation, and returns a unique identifier associated with this ...
int scheduleGetScriptsDelta()
int scheduleRunToLocation(const QString &fileName, int lineNumber)
Instructs the front-end to continue evaluation until the location specified by the given fileName and...
~QScriptDebuggerConsoleGlobalObject()
int scheduleGetActivationObject(int contextIndex)
int scheduleGetBreakpoints()