Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QScriptDebuggerPrivate Class Reference
Inheritance diagram for QScriptDebuggerPrivate:
QObjectPrivate QScriptDebuggerCommandSchedulerInterface QScriptDebuggerJobSchedulerInterface QScriptDebuggerEventHandlerInterface QScriptDebuggerResponseHandlerInterface QScriptCompletionProviderInterface QScriptToolTipProviderInterface QObjectData

Public Functions

void _q_clearConsole ()
 
void _q_clearDebugOutput ()
 
void _q_clearErrorLog ()
 
void _q_continue ()
 
void _q_findInScript ()
 
void _q_findNextInScript ()
 
void _q_findPreviousInScript ()
 
void _q_goToLine ()
 
void _q_interrupt ()
 
void _q_onCurrentFrameChanged (int frameIndex)
 Slot called when the current index has changed in the stack widget. More...
 
void _q_onCurrentScriptChanged (qint64 scriptId)
 Slot called when the current script has changed in the scripts widget. More...
 
void _q_onFindCodeRequest (const QString &, int)
 
void _q_onLineEntered (const QString &contents)
 Slot called when a line has been entered in the console widget. More...
 
void _q_onScriptLocationSelected (int lineNumber)
 
void _q_runToCursor ()
 
void _q_runToNewScript ()
 
void _q_stepInto ()
 
void _q_stepOut ()
 
void _q_stepOver ()
 
void _q_toggleBreakpoint ()
 
QScriptCompletionTaskInterfacecreateCompletionTask (const QString &contents, int cursorPosition, int frameIndex, int options)
 Reimplemented Function More...
 
QScriptDebuggerLocalsModelcreateLocalsModel ()
 
bool debuggerEvent (const QScriptDebuggerEvent &event)
 Handles a debugger event from the frontend. More...
 
void emitStoppedSignal ()
 
void executeConsoleCommand (const QString &command)
 
void findCode (const QString &exp, int options)
 
void finishJob (QScriptDebuggerJob *job)
 Reimplemented Function More...
 
void handleResponse (const QScriptDebuggerResponse &response, int commandId)
 Reimplemented Function More...
 
void hibernateUntilEvaluateFinished (QScriptDebuggerJob *job)
 Reimplemented Function More...
 
void loadLocals (int frameIndex)
 
void maybeDelete (QWidget *widget)
 
void maybeStartNewJob ()
 Starts a new job if appropriate. More...
 
 QScriptDebuggerPrivate ()
 
int scheduleCommand (const QScriptDebuggerCommand &command, QScriptDebuggerResponseHandlerInterface *responseHandler)
 Reimplemented Function More...
 
int scheduleJob (QScriptDebuggerJob *job)
 Reimplemented Function More...
 
void selectScriptForFrame (int frameIndex)
 
void showToolTip (const QPoint &pos, int frameIndex, int lineNumber, const QStringList &path)
 Reimplemented Function More...
 
void startInteraction (QScriptDebuggerEvent::Type type, qint64 scriptId, int lineNumber)
 
void sync ()
 
 ~QScriptDebuggerPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 
- Public Functions inherited from QScriptDebuggerCommandSchedulerInterface
virtual ~QScriptDebuggerCommandSchedulerInterface ()
 
- Public Functions inherited from QScriptDebuggerJobSchedulerInterface
virtual ~QScriptDebuggerJobSchedulerInterface ()
 
- Public Functions inherited from QScriptDebuggerEventHandlerInterface
virtual ~QScriptDebuggerEventHandlerInterface ()
 
- Public Functions inherited from QScriptDebuggerResponseHandlerInterface
virtual ~QScriptDebuggerResponseHandlerInterface ()
 
- Public Functions inherited from QScriptCompletionProviderInterface
virtual ~QScriptCompletionProviderInterface ()
 
- Public Functions inherited from QScriptToolTipProviderInterface
virtual ~QScriptToolTipProviderInterface ()
 

Static Public Functions

static QPixmap pixmap (const QString &path)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

QScriptDebuggerJobactiveJob
 
bool activeJobHibernating
 
QScriptBreakpointsModelbreakpointsModel
 
QScriptBreakpointsWidgetInterfacebreakpointsWidget
 
QActionclearConsoleAction
 
QActionclearDebugOutputAction
 
QActionclearErrorLogAction
 
QScriptDebuggerCodeFinderWidgetInterfacecodeFinderWidget
 
QScriptDebuggerCodeWidgetInterfacecodeWidget
 
QScriptDebuggerConsoleconsole
 
QScriptDebuggerConsoleWidgetInterfaceconsoleWidget
 
QActioncontinueAction
 
QScriptDebugOutputWidgetInterfacedebugOutputWidget
 
QScriptErrorLogWidgetInterfaceerrorLogWidget
 
QActionfindInScriptAction
 
QActionfindNextInScriptAction
 
QActionfindPreviousInScriptAction
 
QScriptDebuggerFrontendfrontend
 
QActiongoToLineAction
 
bool interactive
 
QActioninterruptAction
 
QHash< int, QScriptDebuggerLocalsModel * > localsModels
 
QScriptDebuggerLocalsWidgetInterfacelocalsWidget
 
int nextJobId
 
QList< int > pendingJobIds
 
QList< QScriptDebuggerJob * > pendingJobs
 
QHash< int, QScriptDebuggerResponseHandlerInterface * > responseHandlers
 
QActionrunToCursorAction
 
QActionrunToNewScriptAction
 
QScriptDebuggerScriptsModelscriptsModel
 
QScriptDebuggerScriptsWidgetInterfacescriptsWidget
 
QScriptDebuggerStackModelstackModel
 
QScriptDebuggerStackWidgetInterfacestackWidget
 
QActionstepIntoAction
 
QActionstepOutAction
 
QActionstepOverAction
 
QActiontoggleBreakpointAction
 
int updatesEnabledTimerId
 
QHash< int, QScriptDebuggerCommandwatchedCommands
 
QScriptDebuggerWidgetFactoryInterfacewidgetFactory
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Public Types inherited from QScriptCompletionProviderInterface
enum  Option { ConsoleCommandCompletion = 1 }
 

Detailed Description

Definition at line 146 of file qscriptdebugger.cpp.

Constructors and Destructors

◆ QScriptDebuggerPrivate()

QScriptDebuggerPrivate::QScriptDebuggerPrivate ( )

Definition at line 266 of file qscriptdebugger.cpp.

267 {
268  frontend = 0;
269  activeJob = 0;
270  activeJobHibernating = false;
271  nextJobId = 0;
272  interactive = false;
273 
275  QString scriptsPath = QLatin1String(":/qt/scripttools/debugging/scripts/commands");
277  console->loadScriptedCommands(scriptsPath, &tmp);
278 
279  consoleWidget = 0;
280  stackWidget = 0;
281  stackModel = 0;
282  scriptsWidget = 0;
283  scriptsModel = 0;
284  localsWidget = 0;
285  codeWidget = 0;
286  codeFinderWidget = 0;
287  breakpointsWidget = 0;
288  breakpointsModel = 0;
289  debugOutputWidget = 0;
290  errorLogWidget = 0;
291  widgetFactory = 0;
292 
293  interruptAction = 0;
294  continueAction = 0;
295  stepIntoAction = 0;
296  stepOverAction = 0;
297  stepOutAction = 0;
298  runToCursorAction = 0;
300 
302 
305  clearConsoleAction = 0;
306 
307  findInScriptAction = 0;
310  goToLineAction = 0;
311 
313 }
QScriptDebugOutputWidgetInterface * debugOutputWidget
QScriptDebuggerLocalsWidgetInterface * localsWidget
QScriptDebuggerStackWidgetInterface * stackWidget
QScriptDebuggerWidgetFactoryInterface * widgetFactory
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QScriptBreakpointsWidgetInterface * breakpointsWidget
The QString class provides a Unicode character string.
Definition: qstring.h:83
QScriptDebuggerFrontend * frontend
The QScriptDebuggerConsole class provides the core functionality of a debugger console.
QScriptDebuggerCodeFinderWidgetInterface * codeFinderWidget
QScriptDebuggerCodeWidgetInterface * codeWidget
QScriptDebuggerStackModel * stackModel
void loadScriptedCommands(const QString &scriptsPath, QScriptMessageHandlerInterface *messageHandler)
QScriptDebuggerScriptsWidgetInterface * scriptsWidget
The QScriptStdMessageHandler class implements a message handler that writes to standard output...
QScriptDebuggerConsoleWidgetInterface * consoleWidget
QScriptDebuggerJob * activeJob
QScriptDebuggerScriptsModel * scriptsModel
QScriptDebuggerConsole * console
QScriptErrorLogWidgetInterface * errorLogWidget
QScriptBreakpointsModel * breakpointsModel

◆ ~QScriptDebuggerPrivate()

QScriptDebuggerPrivate::~QScriptDebuggerPrivate ( )

Definition at line 315 of file qscriptdebugger.cpp.

316 {
317  delete console;
319  delete activeJob;
329 }
QScriptDebugOutputWidgetInterface * debugOutputWidget
QScriptDebuggerLocalsWidgetInterface * localsWidget
QScriptDebuggerStackWidgetInterface * stackWidget
QScriptBreakpointsWidgetInterface * breakpointsWidget
QScriptDebuggerCodeFinderWidgetInterface * codeFinderWidget
QList< QScriptDebuggerJob * > pendingJobs
QScriptDebuggerCodeWidgetInterface * codeWidget
QScriptDebuggerScriptsWidgetInterface * scriptsWidget
QScriptDebuggerConsoleWidgetInterface * consoleWidget
QScriptDebuggerJob * activeJob
QScriptDebuggerConsole * console
void maybeDelete(QWidget *widget)
QScriptErrorLogWidgetInterface * errorLogWidget
Q_OUTOFLINE_TEMPLATE void qDeleteAll(ForwardIterator begin, ForwardIterator end)
Definition: qalgorithms.h:319

Functions

◆ _q_clearConsole()

void QScriptDebuggerPrivate::_q_clearConsole ( )

Definition at line 822 of file qscriptdebugger.cpp.

823 {
824  if (consoleWidget)
825  consoleWidget->clear();
826 }
QScriptDebuggerConsoleWidgetInterface * consoleWidget

◆ _q_clearDebugOutput()

void QScriptDebuggerPrivate::_q_clearDebugOutput ( )

Definition at line 810 of file qscriptdebugger.cpp.

811 {
812  if (debugOutputWidget)
814 }
QScriptDebugOutputWidgetInterface * debugOutputWidget

◆ _q_clearErrorLog()

void QScriptDebuggerPrivate::_q_clearErrorLog ( )

Definition at line 816 of file qscriptdebugger.cpp.

817 {
818  if (errorLogWidget)
820 }
QScriptErrorLogWidgetInterface * errorLogWidget

◆ _q_continue()

void QScriptDebuggerPrivate::_q_continue ( )

Definition at line 756 of file qscriptdebugger.cpp.

757 {
759 }
void executeConsoleCommand(const QString &command)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188

◆ _q_findInScript()

void QScriptDebuggerPrivate::_q_findInScript ( )

Definition at line 843 of file qscriptdebugger.cpp.

844 {
846  q_func()->setCodeFinderWidget(widgetFactory->createCodeFinderWidget());
847  if (codeFinderWidget) {
850  }
851 }
QScriptDebuggerWidgetFactoryInterface * widgetFactory
virtual QScriptDebuggerCodeFinderWidgetInterface * createCodeFinderWidget()=0
QScriptDebuggerCodeFinderWidgetInterface * codeFinderWidget
void show()
Shows the widget and its child widgets.
void setFocus()
Gives the keyboard input focus to this widget (or its focus proxy) if this widget or one of its paren...
Definition: qwidget.h:432

◆ _q_findNextInScript()

void QScriptDebuggerPrivate::_q_findNextInScript ( )

Definition at line 853 of file qscriptdebugger.cpp.

854 {
856 }
void findCode(const QString &exp, int options)
QScriptDebuggerCodeFinderWidgetInterface * codeFinderWidget
virtual QString text() const =0

◆ _q_findPreviousInScript()

void QScriptDebuggerPrivate::_q_findPreviousInScript ( )

Definition at line 858 of file qscriptdebugger.cpp.

859 {
860  int options = codeFinderWidget->findOptions();
861  options |= QTextDocument::FindBackward;
862  findCode(codeFinderWidget->text(), options);
863 }
void findCode(const QString &exp, int options)
QScriptDebuggerCodeFinderWidgetInterface * codeFinderWidget
virtual QString text() const =0

◆ _q_goToLine()

void QScriptDebuggerPrivate::_q_goToLine ( )

Definition at line 885 of file qscriptdebugger.cpp.

886 {
888  if (!view)
889  return;
890 #ifndef QT_NO_INPUTDIALOG
891  bool ok = false;
892  int lineNumber = QInputDialog::getInteger(0, QScriptDebugger::tr("Go to Line"),
893  QScriptDebugger::tr("Line:"),
894  view->cursorLineNumber(),
895  1, INT_MAX, 1, &ok);
896  if (ok)
897  view->gotoLine(lineNumber);
898 #endif
899 }
virtual void gotoLine(int lineNumber)=0
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual int cursorLineNumber() const =0
static int getInteger(QWidget *parent, const QString &title, const QString &label, int value=0, int minValue=-2147483647, int maxValue=2147483647, int step=1, bool *ok=0, Qt::WindowFlags flags=0)
Use getInt() instead.
virtual QScriptDebuggerCodeViewInterface * currentView() const =0
#define INT_MAX

◆ _q_interrupt()

void QScriptDebuggerPrivate::_q_interrupt ( )

Definition at line 751 of file qscriptdebugger.cpp.

752 {
754 }
void executeConsoleCommand(const QString &command)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188

◆ _q_onCurrentFrameChanged()

void QScriptDebuggerPrivate::_q_onCurrentFrameChanged ( int  frameIndex)

Slot called when the current index has changed in the stack widget.

Definition at line 724 of file qscriptdebugger.cpp.

725 {
726  loadLocals(frameIndex);
727  selectScriptForFrame(frameIndex);
728 }
void loadLocals(int frameIndex)
void selectScriptForFrame(int frameIndex)

◆ _q_onCurrentScriptChanged()

void QScriptDebuggerPrivate::_q_onCurrentScriptChanged ( qint64  scriptId)

Slot called when the current script has changed in the scripts widget.

Definition at line 733 of file qscriptdebugger.cpp.

734 {
735  if (codeWidget && (codeWidget->currentScriptId() != scriptId)) {
736  codeWidget->setCurrentScript(scriptId);
738  if (view)
739  view->setExecutionLineNumber(-1, /*error=*/false);
740  }
741 }
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual void setExecutionLineNumber(int lineNumber, bool error)=0
virtual void setCurrentScript(qint64 scriptId)=0
virtual QScriptDebuggerCodeViewInterface * currentView() const =0
virtual qint64 currentScriptId() const =0

◆ _q_onFindCodeRequest()

void QScriptDebuggerPrivate::_q_onFindCodeRequest ( const QString exp,
int  options 
)

Definition at line 865 of file qscriptdebugger.cpp.

867 {
868  findCode(exp, options);
873 }
void setEnabled(bool)
Definition: qaction.cpp:1192
void findCode(const QString &exp, int options)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704

◆ _q_onLineEntered()

void QScriptDebuggerPrivate::_q_onLineEntered ( const QString contents)

Slot called when a line has been entered in the console widget.

Definition at line 709 of file qscriptdebugger.cpp.

710 {
712  commandJob = console->consumeInput(contents, consoleWidget, this);
713  if (commandJob != 0) {
714  scheduleJob(commandJob);
716  } else if (console->hasIncompleteInput()) {
718  }
719 }
QScriptDebuggerConsoleCommandJob * consumeInput(const QString &input, QScriptMessageHandlerInterface *messageHandler, QScriptDebuggerCommandSchedulerInterface *commandScheduler)
Consumes the given line of input.
QScriptDebuggerConsoleWidgetInterface * consoleWidget
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function
virtual void setLineContinuationMode(bool enabled)=0
QScriptDebuggerConsole * console

◆ _q_onScriptLocationSelected()

void QScriptDebuggerPrivate::_q_onScriptLocationSelected ( int  lineNumber)

Definition at line 743 of file qscriptdebugger.cpp.

744 {
746  if (!view)
747  return;
748  view->gotoLine(lineNumber);
749 }
virtual void gotoLine(int lineNumber)=0
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual QScriptDebuggerCodeViewInterface * currentView() const =0

◆ _q_runToCursor()

void QScriptDebuggerPrivate::_q_runToCursor ( )

Definition at line 776 of file qscriptdebugger.cpp.

777 {
778  qint64 scriptId = codeWidget->currentScriptId();
779  int lineNumber = codeWidget->currentView()->cursorLineNumber();
781  frontend.scheduleRunToLocation(scriptId, lineNumber);
782 }
QScriptDebuggerFrontend * frontend
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual int cursorLineNumber() const =0
__int64 qint64
Definition: qglobal.h:942
virtual QScriptDebuggerCodeViewInterface * currentView() const =0
virtual qint64 currentScriptId() const =0

◆ _q_runToNewScript()

void QScriptDebuggerPrivate::_q_runToNewScript ( )

Definition at line 784 of file qscriptdebugger.cpp.

785 {
787  frontend.scheduleRunToLocation(QString(), -1);
788 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
QScriptDebuggerFrontend * frontend

◆ _q_stepInto()

void QScriptDebuggerPrivate::_q_stepInto ( )

Definition at line 761 of file qscriptdebugger.cpp.

762 {
764 }
void executeConsoleCommand(const QString &command)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188

◆ _q_stepOut()

void QScriptDebuggerPrivate::_q_stepOut ( )

Definition at line 771 of file qscriptdebugger.cpp.

772 {
774 }
void executeConsoleCommand(const QString &command)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188

◆ _q_stepOver()

void QScriptDebuggerPrivate::_q_stepOver ( )

Definition at line 766 of file qscriptdebugger.cpp.

767 {
769 }
void executeConsoleCommand(const QString &command)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188

◆ _q_toggleBreakpoint()

void QScriptDebuggerPrivate::_q_toggleBreakpoint ( )

Definition at line 790 of file qscriptdebugger.cpp.

791 {
792  Q_ASSERT(codeWidget != 0);
794  if (!view)
795  return;
796  qint64 scriptId = codeWidget->currentScriptId();
797  int lineNumber = view->cursorLineNumber();
799  int bpId = breakpointsModel->resolveBreakpoint(scriptId, lineNumber);
800  if (bpId != -1) {
802  } else {
803  QScriptBreakpointData data(scriptId, lineNumber);
804  if (scriptsModel)
805  data.setFileName(scriptsModel->scriptData(scriptId).fileName());
807  }
808 }
void deleteBreakpoint(int id)
Deletes the breakpoint with the given id.
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QScriptScriptData scriptData(qint64 id) const
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual int cursorLineNumber() const =0
static const char * data(const QByteArray &arr)
__int64 qint64
Definition: qglobal.h:942
The QScriptBreakpointData class contains data associated with a breakpoint.
void setBreakpoint(const QScriptBreakpointData &data)
Sets a breakpoint defined by the given data.
QScriptDebuggerScriptsModel * scriptsModel
int resolveBreakpoint(qint64 scriptId, int lineNumber) const
Tries to find a breakpoint with the given scriptId and lineNumber.
virtual QScriptDebuggerCodeViewInterface * currentView() const =0
QString fileName() const
virtual qint64 currentScriptId() const =0
QScriptBreakpointsModel * breakpointsModel

◆ createCompletionTask()

QScriptCompletionTaskInterface * QScriptDebuggerPrivate::createCompletionTask ( const QString contents,
int  cursorPosition,
int  frameIndex,
int  options 
)
virtual

Reimplemented Function

Implements QScriptCompletionProviderInterface.

Definition at line 698 of file qscriptdebugger.cpp.

◆ createLocalsModel()

QScriptDebuggerLocalsModel * QScriptDebuggerPrivate::createLocalsModel ( )

Definition at line 1234 of file qscriptdebugger.cpp.

1235 {
1236  return new QScriptDebuggerLocalsModel(this, this, q_func());
1237 }

◆ debuggerEvent()

bool QScriptDebuggerPrivate::debuggerEvent ( const QScriptDebuggerEvent event)
virtual

Handles a debugger event from the frontend.

Reimplemented Function

Implements QScriptDebuggerEventHandlerInterface.

Definition at line 494 of file qscriptdebugger.cpp.

495 {
497  switch (event.type()) {
501  Q_ASSERT(false);
502  break;
503 
506  q->setDebugOutputWidget(widgetFactory->createDebugOutputWidget());
507  if (debugOutputWidget)
509  return true; // trace doesn't stall execution
510 
513  q->setConsoleWidget(widgetFactory->createConsoleWidget());
514  if (consoleWidget) {
515  QString msg = event.message();
516  if (!msg.isEmpty())
518  }
519  } break;
520 
523  break;
524 
526  int bpId = event.breakpointId();
528  q->setConsoleWidget(widgetFactory->createConsoleWidget());
529  if (consoleWidget) {
531  QString::fromLatin1("Breakpoint %0 at %1, line %2.")
532  .arg(bpId).arg(event.fileName())
533  .arg(event.lineNumber()));
534  }
537  } break;
538 
540  if (event.hasExceptionHandler()) {
541  // Let the exception be handled like normal.
542  // We may want to add a "Break on all exceptions" option
543  // to be able to customize this behavior.
544  return true;
545  }
547  q->setConsoleWidget(widgetFactory->createConsoleWidget());
549  q->setErrorLogWidget(widgetFactory->createErrorLogWidget());
550  if (consoleWidget || errorLogWidget) {
551  QString fn = event.fileName();
552  if (fn.isEmpty()) {
553  if (event.scriptId() != -1)
554  fn = QString::fromLatin1("<anonymous script, id=%0>").arg(event.scriptId());
555  else
556  fn = QString::fromLatin1("<native>");
557  }
558  QString msg = QString::fromLatin1("Uncaught exception at %0:%1: %2").arg(fn)
559  .arg(event.lineNumber()).arg(event.message());
560  if (consoleWidget)
562  if (errorLogWidget)
564  }
565  } break;
566 
568  QScriptDebuggerValue result = event.scriptValue();
569  Q_ASSERT(console != 0);
570  int action = console->evaluateAction();
572  switch (action) {
573  case 0: { // eval command
574  if (activeJob) {
575  if (activeJobHibernating) {
576  activeJobHibernating = false;
577  activeJob->evaluateFinished(result);
578  }
579  } else if (consoleWidget) {
580  // ### if the result is an object, need to do a tostring job on it
581 // messageHandler->message(QtDebugMsg, result.toString());
584  }
585  } break;
586  case 1: { // return command
588  frontend.scheduleForceReturn(console->currentFrameIndex(), result);
589  } return false;
590  }
591  if (!event.isNestedEvaluate()) {
592  // in the case when evaluate() was called while the
593  // engine was not running, we don't want to enter interactive mode
594  return true;
595  }
596  } break;
597 
600  q->setConsoleWidget(widgetFactory->createConsoleWidget());
601  if (consoleWidget) {
602  QString fn = event.fileName();
603  if (fn.isEmpty())
604  fn = QString::fromLatin1("<anonymous script, id=%0>").arg(event.scriptId());
606  QString::fromLatin1("Debugger invoked from %1, line %2.")
607  .arg(fn).arg(event.lineNumber()));
608  }
609  } break;
610 
612  } break;
613 
614  }
615 
616  if (widgetInPaintEvent) {
617  QString msg = QString::fromLatin1("Suspending evaluation in paintEvent() is not supported; resuming.");
619  q->setConsoleWidget(widgetFactory->createConsoleWidget());
621  q->setErrorLogWidget(widgetFactory->createErrorLogWidget());
622  if (consoleWidget)
624  if (errorLogWidget)
626  return true;
627  }
628 
629  if (activeJobHibernating) {
630  // evaluate() did not finish normally (e.g. due to a breakpoint),
631  // so cancel the job that's waiting for it
632  delete activeJob;
633  activeJob = 0;
634  activeJobHibernating = false;
635  }
636 
637  startInteraction(event.type(), event.scriptId(), event.lineNumber());
638  return !interactive;
639 }
virtual QScriptErrorLogWidgetInterface * createErrorLogWidget()=0
bool isSingleShot() const
Returns true if the breakpoint is single-shot, false otherwise.
QScriptDebugOutputWidgetInterface * debugOutputWidget
QScriptDebuggerWidgetFactoryInterface * widgetFactory
void startInteraction(QScriptDebuggerEvent::Type type, qint64 scriptId, int lineNumber)
The QString class provides a Unicode character string.
Definition: qstring.h:83
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QScriptDebuggerFrontend * frontend
#define Q_Q(Class)
Definition: qglobal.h:2483
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
virtual void evaluateFinished(const QScriptDebuggerValue &result)
QScriptBreakpointData breakpointData(int id) const
virtual QScriptDebugOutputWidgetInterface * createDebugOutputWidget()=0
QScriptDebuggerConsoleWidgetInterface * consoleWidget
ValueType type() const
Returns the type of this value.
The QScriptDebuggerValue class represents a script value.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
QScriptDebuggerJob * activeJob
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
void removeBreakpoint(int id)
Remove the breakpoint identified by id from the model.
The QScriptDebugger class provides a Qt Script debugger.
virtual QScriptDebuggerConsoleWidgetInterface * createConsoleWidget()=0
QScriptDebuggerConsole * console
QScriptErrorLogWidgetInterface * errorLogWidget
virtual void message(QtMsgType type, const QString &text, const QString &fileName=QString(), int lineNumber=-1, int columnNumber=-1, const QVariant &data=QVariant())=0
QScriptBreakpointsModel * breakpointsModel

◆ emitStoppedSignal()

void QScriptDebuggerPrivate::emitStoppedSignal ( )

Definition at line 1290 of file qscriptdebugger.cpp.

1291 {
1292  emit q_func()->stopped();
1293 }
#define emit
Definition: qobjectdefs.h:76

◆ executeConsoleCommand()

void QScriptDebuggerPrivate::executeConsoleCommand ( const QString command)

Definition at line 828 of file qscriptdebugger.cpp.

Referenced by _q_continue(), _q_interrupt(), _q_stepInto(), _q_stepOut(), and _q_stepOver().

829 {
834  if (job != 0) {
835  scheduleJob(job);
836  // once to send the command...
838  // ... and once to receive the response
840  }
841 }
QScriptDebugOutputWidgetInterface * debugOutputWidget
The QString class provides a Unicode character string.
Definition: qstring.h:83
static void processEvents(QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
Processes all pending events for the calling thread according to the specified flags until there are ...
void setIncompleteInput(const QString &input)
QScriptDebuggerConsoleCommandJob * consumeInput(const QString &input, QScriptMessageHandlerInterface *messageHandler, QScriptDebuggerCommandSchedulerInterface *commandScheduler)
Consumes the given line of input.
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function
QScriptDebuggerConsole * console

◆ findCode()

void QScriptDebuggerPrivate::findCode ( const QString exp,
int  options 
)

Definition at line 875 of file qscriptdebugger.cpp.

Referenced by _q_findNextInScript(), _q_findPreviousInScript(), and _q_onFindCodeRequest().

876 {
878  if (!view)
879  return;
880  int result = view->find(exp, options);
881  codeFinderWidget->setOK(((result & 0x1) != 0) || exp.isEmpty());
882  codeFinderWidget->setWrapped((result & 0x2) != 0);
883 }
virtual void setWrapped(bool wrapped)=0
QScriptDebuggerCodeFinderWidgetInterface * codeFinderWidget
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual int find(const QString &exp, int options=0)=0
virtual QScriptDebuggerCodeViewInterface * currentView() const =0

◆ finishJob()

void QScriptDebuggerPrivate::finishJob ( QScriptDebuggerJob job)
virtual

Reimplemented Function

Implements QScriptDebuggerJobSchedulerInterface.

Definition at line 361 of file qscriptdebugger.cpp.

362 {
363  Q_UNUSED(job);
364  Q_ASSERT(activeJob == job);
365  delete activeJob;
366  activeJob = 0;
367  activeJobHibernating = false;
369 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QScriptDebuggerJob * activeJob
void maybeStartNewJob()
Starts a new job if appropriate.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ handleResponse()

void QScriptDebuggerPrivate::handleResponse ( const QScriptDebuggerResponse response,
int  commandId 
)
virtual

Reimplemented Function

Implements QScriptDebuggerResponseHandlerInterface.

Definition at line 416 of file qscriptdebugger.cpp.

Referenced by createLocalsModel().

418 {
420  if (watchedCommands.contains(commandId)) {
421  QScriptDebuggerCommand command = watchedCommands.take(commandId);
422  if (response.error() == QScriptDebuggerResponse::NoError) {
423  if (!breakpointsModel)
424  breakpointsModel = new QScriptBreakpointsModel(this, this, q);
425  switch (command.type()) {
427  int breakpointId = response.resultAsInt();
429  breakpointsModel->addBreakpoint(breakpointId, data);
430  } break;
432  int breakpointId = command.breakpointId();
433  QScriptBreakpointData data = command.breakpointData();
434  breakpointsModel->modifyBreakpoint(breakpointId, data);
435  } break;
437  int breakpointId = command.breakpointId();
438  breakpointsModel->removeBreakpoint(breakpointId);
439  } break;
440  default:
441  Q_ASSERT(false);
442  }
443  }
444  } else if (response.async()) {
445  interactive = false;
446  // disable/invalidate/enable stuff
447  if (continueAction)
448  continueAction->setEnabled(false);
449  if (stepIntoAction)
450  stepIntoAction->setEnabled(false);
451  if (stepOverAction)
452  stepOverAction->setEnabled(false);
453  if (stepOutAction)
454  stepOutAction->setEnabled(false);
455  if (runToCursorAction)
459  if (interruptAction)
461 
462  // the timer is to avoid flicker when stepping
463  if (stackWidget) {
465  stackWidget->setEnabled(false);
466  if (updatesEnabledTimerId == -1)
467  updatesEnabledTimerId = q->startTimer(75);
468  }
469  if (localsWidget) {
471  localsWidget->setEnabled(false);
472  if (updatesEnabledTimerId == -1)
473  updatesEnabledTimerId = q->startTimer(75);
474  }
475  if (codeWidget)
477 
478  emit q->started();
479  }
480 
482  if (realHandler)
483  realHandler->handleResponse(response, commandId);
484 }
Error error() const
Returns the error code of this response.
QScriptDebuggerLocalsWidgetInterface * localsWidget
QScriptDebuggerStackWidgetInterface * stackWidget
T take(const Key &key)
Removes the item with the key from the hash and returns the value associated with it...
Definition: qhash.h:807
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void setUpdatesEnabled(bool enable)
Definition: qwidget.cpp:7670
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
Definition: qhash.h:872
Type type() const
Returns the type of this command.
void setEnabled(bool)
Definition: qaction.cpp:1192
QHash< int, QScriptDebuggerResponseHandlerInterface * > responseHandlers
#define Q_Q(Class)
Definition: qglobal.h:2483
virtual void invalidateExecutionLineNumbers()=0
virtual void handleResponse(const QScriptDebuggerResponse &response, int commandId)=0
void modifyBreakpoint(int id, const QScriptBreakpointData &data)
Modify the data of breakpoint id.
#define emit
Definition: qobjectdefs.h:76
QScriptDebuggerCodeWidgetInterface * codeWidget
static const char * data(const QByteArray &arr)
The QScriptBreakpointData class contains data associated with a breakpoint.
void setEnabled(bool)
Definition: qwidget.cpp:3447
The QScriptDebuggerCommand class represents a command issued to a QScriptDebuggerFrontend.
void addBreakpoint(int id, const QScriptBreakpointData &data)
Adds a breakpoint to the model.
void removeBreakpoint(int id)
Remove the breakpoint identified by id from the model.
The QScriptDebugger class provides a Qt Script debugger.
QScriptBreakpointData breakpointData() const
QHash< int, QScriptDebuggerCommand > watchedCommands
QScriptBreakpointsModel * breakpointsModel

◆ hibernateUntilEvaluateFinished()

void QScriptDebuggerPrivate::hibernateUntilEvaluateFinished ( QScriptDebuggerJob job)
virtual

Reimplemented Function

Implements QScriptDebuggerJobSchedulerInterface.

Definition at line 374 of file qscriptdebugger.cpp.

375 {
376  Q_UNUSED(job);
377  Q_ASSERT(activeJob == job);
378  activeJobHibernating = true;
379 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QScriptDebuggerJob * activeJob
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ loadLocals()

void QScriptDebuggerPrivate::loadLocals ( int  frameIndex)

Definition at line 1228 of file qscriptdebugger.cpp.

Referenced by _q_onCurrentFrameChanged(), and sync().

1229 {
1230  LoadLocalsJob *job = new LoadLocalsJob(this, frameIndex);
1231  scheduleJob(job);
1232 }
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function

◆ maybeDelete()

void QScriptDebuggerPrivate::maybeDelete ( QWidget widget)

Definition at line 331 of file qscriptdebugger.cpp.

Referenced by ~QScriptDebuggerPrivate().

332 {
333  if (widget && !widget->parent())
334  delete widget;
335 }
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273

◆ maybeStartNewJob()

void QScriptDebuggerPrivate::maybeStartNewJob ( )

Starts a new job if appropriate.

Definition at line 384 of file qscriptdebugger.cpp.

Referenced by finishJob(), and scheduleJob().

385 {
386  if (activeJob || pendingJobs.isEmpty())
387  return;
389  activeJob->start();
390 }
virtual void start()=0
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
QList< QScriptDebuggerJob * > pendingJobs
T takeFirst()
Removes the first item in the list and returns it.
Definition: qlist.h:489
QScriptDebuggerJob * activeJob

◆ pixmap()

QPixmap QScriptDebuggerPrivate::pixmap ( const QString path)
static

Definition at line 337 of file qscriptdebugger.cpp.

338 {
339  static QString prefix = QString::fromLatin1(":/qt/scripttools/debugging/images/");
340  return QPixmap(prefix + path);
341 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71

◆ scheduleCommand()

int QScriptDebuggerPrivate::scheduleCommand ( const QScriptDebuggerCommand command,
QScriptDebuggerResponseHandlerInterface responseHandler 
)
virtual

Reimplemented Function

Implements QScriptDebuggerCommandSchedulerInterface.

Definition at line 395 of file qscriptdebugger.cpp.

398 {
399  if (!frontend)
400  return -1;
401  int id = frontend->scheduleCommand(command, this);
402  if (responseHandler && (responseHandler != this))
403  responseHandlers.insert(id, responseHandler);
407  // need to watch this command and update the breakpoints model afterwards
408  watchedCommands.insert(id, command);
409  }
410  return id;
411 }
Type type() const
Returns the type of this command.
QScriptDebuggerFrontend * frontend
QHash< int, QScriptDebuggerResponseHandlerInterface * > responseHandlers
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753
int scheduleCommand(const QScriptDebuggerCommand &command, QScriptDebuggerResponseHandlerInterface *responseHandler)
Schedules the given command for execution by this front-end, and returns a unique identifier associat...
QHash< int, QScriptDebuggerCommand > watchedCommands

◆ scheduleJob()

int QScriptDebuggerPrivate::scheduleJob ( QScriptDebuggerJob job)
virtual

Reimplemented Function

Implements QScriptDebuggerJobSchedulerInterface.

Definition at line 346 of file qscriptdebugger.cpp.

Referenced by _q_onLineEntered(), executeConsoleCommand(), loadLocals(), selectScriptForFrame(), showToolTip(), startInteraction(), and sync().

347 {
349  Q_ASSERT(priv->jobScheduler == 0);
350  priv->jobScheduler = this;
351  int id = nextJobId;
352  pendingJobs.append(job);
353  pendingJobIds.append(id);
355  return id;
356 }
QScriptDebuggerJobSchedulerInterface * jobScheduler
static QScriptDebuggerJobPrivate * get(QScriptDebuggerJob *q)
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QList< QScriptDebuggerJob * > pendingJobs
static const QMetaObjectPrivate * priv(const uint *data)
void maybeStartNewJob()
Starts a new job if appropriate.

◆ selectScriptForFrame()

void QScriptDebuggerPrivate::selectScriptForFrame ( int  frameIndex)

Definition at line 1284 of file qscriptdebugger.cpp.

Referenced by _q_onCurrentFrameChanged(), and sync().

1285 {
1286  QScriptDebuggerJob *job = new ShowFrameCodeJob(this, frameIndex);
1287  scheduleJob(job);
1288 }
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function

◆ showToolTip()

void QScriptDebuggerPrivate::showToolTip ( const QPoint pos,
int  frameIndex,
int  lineNumber,
const QStringList path 
)
virtual

Reimplemented Function

Implements QScriptToolTipProviderInterface.

Definition at line 682 of file qscriptdebugger.cpp.

684 {
685  if (frameIndex == -1) {
686  if (stackWidget)
687  frameIndex = stackWidget->currentFrameIndex();
688  else
689  frameIndex = console->currentFrameIndex();
690  }
691  QScriptDebuggerJob *job = new QScriptToolTipJob(pos, frameIndex, lineNumber, path, this);
692  scheduleJob(job);
693 }
QScriptDebuggerStackWidgetInterface * stackWidget
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function
QScriptDebuggerConsole * console
virtual int currentFrameIndex() const =0

◆ startInteraction()

void QScriptDebuggerPrivate::startInteraction ( QScriptDebuggerEvent::Type  type,
qint64  scriptId,
int  lineNumber 
)

Definition at line 1141 of file qscriptdebugger.cpp.

Referenced by debuggerEvent().

1143 {
1146  if (stackWidget)
1149  console->setCurrentScriptId(scriptId);
1150  console->setCurrentLineNumber(lineNumber);
1151  }
1152 
1153  if ((scriptId != -1) && consoleWidget) {
1154  QScriptDebuggerJob *job = new QScriptDebuggerShowLineJob(scriptId, lineNumber, consoleWidget, this);
1155  scheduleJob(job);
1156  }
1157 
1158  sync();
1159 
1160  if (!interactive) {
1161  interactive = true;
1162  if (updatesEnabledTimerId != -1) {
1163  q->killTimer(updatesEnabledTimerId);
1164  updatesEnabledTimerId = -1;
1165  }
1167  scheduleJob(new EmitStoppedSignalJob(this));
1168  }
1169 
1170  if (consoleWidget)
1172  else if (codeWidget)
1174 
1175  if (continueAction)
1176  continueAction->setEnabled(true);
1177  if (stepIntoAction)
1178  stepIntoAction->setEnabled(true);
1179  if (stepOverAction)
1180  stepOverAction->setEnabled(true);
1181  if (stepOutAction)
1182  stepOutAction->setEnabled(true);
1183  if (runToCursorAction)
1187  if (interruptAction)
1188  interruptAction->setEnabled(false);
1189 
1190  bool hasScript = (codeWidget != 0);
1191  if (findInScriptAction)
1192  findInScriptAction->setEnabled(hasScript);
1194  toggleBreakpointAction->setEnabled(hasScript);
1195  if (goToLineAction)
1196  goToLineAction->setEnabled(hasScript);
1197 }
int type
Definition: qmetatype.cpp:239
QScriptDebuggerStackWidgetInterface * stackWidget
void setEnabled(bool)
Definition: qaction.cpp:1192
#define Q_Q(Class)
Definition: qglobal.h:2483
QScriptDebuggerCodeWidgetInterface * codeWidget
virtual void setCurrentFrameIndex(int frameIndex)=0
QScriptDebuggerConsoleWidgetInterface * consoleWidget
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function
The QScriptDebugger class provides a Qt Script debugger.
void setCurrentLineNumber(int lineNumber)
void activateWindow()
Sets the top-level widget containing this widget to be the active window.
QScriptDebuggerConsole * console

◆ sync()

void QScriptDebuggerPrivate::sync ( )

Definition at line 1199 of file qscriptdebugger.cpp.

Referenced by startInteraction().

1200 {
1201  if (localsWidget) {
1202  QScriptDebuggerJob *job = new SyncLocalsJob(this);
1203  scheduleJob(job);
1204  }
1205  if (scriptsModel) {
1206  QScriptDebuggerJob *job = new SyncScriptsJob(this);
1207  scheduleJob(job);
1208  }
1209  if (stackModel) {
1210  QScriptDebuggerJob *job = new SyncStackJob(this);
1211  scheduleJob(job);
1212  }
1213  if (breakpointsModel) {
1214  // need to sync because the ignore-count could have changed
1215  QScriptDebuggerJob *job = new SyncBreakpointsJob(this);
1216  scheduleJob(job);
1217  }
1218 
1219  if (stackWidget && (stackWidget->currentFrameIndex() != -1)) {
1221  loadLocals(index);
1222  selectScriptForFrame(index);
1223  } else if (codeWidget && (console->currentFrameIndex() != -1)) {
1225  }
1226 }
void loadLocals(int frameIndex)
QScriptDebuggerLocalsWidgetInterface * localsWidget
QScriptDebuggerStackWidgetInterface * stackWidget
void selectScriptForFrame(int frameIndex)
QScriptDebuggerCodeWidgetInterface * codeWidget
QScriptDebuggerStackModel * stackModel
int scheduleJob(QScriptDebuggerJob *job)
Reimplemented Function
QScriptDebuggerScriptsModel * scriptsModel
quint16 index
QScriptDebuggerConsole * console
virtual int currentFrameIndex() const =0
QScriptBreakpointsModel * breakpointsModel

Properties

◆ activeJob

QScriptDebuggerJob* QScriptDebuggerPrivate::activeJob

◆ activeJobHibernating

bool QScriptDebuggerPrivate::activeJobHibernating

◆ breakpointsModel

QScriptBreakpointsModel* QScriptDebuggerPrivate::breakpointsModel

◆ breakpointsWidget

QScriptBreakpointsWidgetInterface* QScriptDebuggerPrivate::breakpointsWidget

Definition at line 238 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and ~QScriptDebuggerPrivate().

◆ clearConsoleAction

QAction* QScriptDebuggerPrivate::clearConsoleAction

Definition at line 256 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate().

◆ clearDebugOutputAction

QAction* QScriptDebuggerPrivate::clearDebugOutputAction

Definition at line 254 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate().

◆ clearErrorLogAction

QAction* QScriptDebuggerPrivate::clearErrorLogAction

Definition at line 255 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate().

◆ codeFinderWidget

QScriptDebuggerCodeFinderWidgetInterface* QScriptDebuggerPrivate::codeFinderWidget

◆ codeWidget

QScriptDebuggerCodeWidgetInterface* QScriptDebuggerPrivate::codeWidget

◆ console

QScriptDebuggerConsole* QScriptDebuggerPrivate::console

◆ consoleWidget

QScriptDebuggerConsoleWidgetInterface* QScriptDebuggerPrivate::consoleWidget

◆ continueAction

QAction* QScriptDebuggerPrivate::continueAction

Definition at line 245 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ debugOutputWidget

QScriptDebugOutputWidgetInterface* QScriptDebuggerPrivate::debugOutputWidget

◆ errorLogWidget

QScriptErrorLogWidgetInterface* QScriptDebuggerPrivate::errorLogWidget

◆ findInScriptAction

QAction* QScriptDebuggerPrivate::findInScriptAction

Definition at line 258 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and startInteraction().

◆ findNextInScriptAction

QAction* QScriptDebuggerPrivate::findNextInScriptAction

Definition at line 259 of file qscriptdebugger.cpp.

Referenced by _q_onFindCodeRequest(), and QScriptDebuggerPrivate().

◆ findPreviousInScriptAction

QAction* QScriptDebuggerPrivate::findPreviousInScriptAction

Definition at line 260 of file qscriptdebugger.cpp.

Referenced by _q_onFindCodeRequest(), and QScriptDebuggerPrivate().

◆ frontend

QScriptDebuggerFrontend* QScriptDebuggerPrivate::frontend

◆ goToLineAction

QAction* QScriptDebuggerPrivate::goToLineAction

Definition at line 261 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and startInteraction().

◆ interactive

bool QScriptDebuggerPrivate::interactive

◆ interruptAction

QAction* QScriptDebuggerPrivate::interruptAction

Definition at line 244 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ localsModels

QHash<int, QScriptDebuggerLocalsModel*> QScriptDebuggerPrivate::localsModels

Definition at line 235 of file qscriptdebugger.cpp.

◆ localsWidget

QScriptDebuggerLocalsWidgetInterface* QScriptDebuggerPrivate::localsWidget

◆ nextJobId

int QScriptDebuggerPrivate::nextJobId

Definition at line 221 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and scheduleJob().

◆ pendingJobIds

QList<int> QScriptDebuggerPrivate::pendingJobIds

Definition at line 223 of file qscriptdebugger.cpp.

Referenced by scheduleJob().

◆ pendingJobs

QList<QScriptDebuggerJob*> QScriptDebuggerPrivate::pendingJobs

Definition at line 222 of file qscriptdebugger.cpp.

Referenced by maybeStartNewJob(), scheduleJob(), and ~QScriptDebuggerPrivate().

◆ responseHandlers

QHash<int, QScriptDebuggerResponseHandlerInterface*> QScriptDebuggerPrivate::responseHandlers

Definition at line 227 of file qscriptdebugger.cpp.

Referenced by handleResponse(), and scheduleCommand().

◆ runToCursorAction

QAction* QScriptDebuggerPrivate::runToCursorAction

Definition at line 249 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ runToNewScriptAction

QAction* QScriptDebuggerPrivate::runToNewScriptAction

Definition at line 250 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ scriptsModel

QScriptDebuggerScriptsModel* QScriptDebuggerPrivate::scriptsModel

Definition at line 233 of file qscriptdebugger.cpp.

Referenced by _q_toggleBreakpoint(), QScriptDebuggerPrivate(), and sync().

◆ scriptsWidget

QScriptDebuggerScriptsWidgetInterface* QScriptDebuggerPrivate::scriptsWidget

Definition at line 232 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and ~QScriptDebuggerPrivate().

◆ stackModel

QScriptDebuggerStackModel* QScriptDebuggerPrivate::stackModel

Definition at line 231 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and sync().

◆ stackWidget

QScriptDebuggerStackWidgetInterface* QScriptDebuggerPrivate::stackWidget

◆ stepIntoAction

QAction* QScriptDebuggerPrivate::stepIntoAction

Definition at line 246 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ stepOutAction

QAction* QScriptDebuggerPrivate::stepOutAction

Definition at line 248 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ stepOverAction

QAction* QScriptDebuggerPrivate::stepOverAction

Definition at line 247 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ toggleBreakpointAction

QAction* QScriptDebuggerPrivate::toggleBreakpointAction

Definition at line 252 of file qscriptdebugger.cpp.

Referenced by QScriptDebuggerPrivate(), and startInteraction().

◆ updatesEnabledTimerId

int QScriptDebuggerPrivate::updatesEnabledTimerId

Definition at line 263 of file qscriptdebugger.cpp.

Referenced by handleResponse(), QScriptDebuggerPrivate(), and startInteraction().

◆ watchedCommands

QHash<int, QScriptDebuggerCommand> QScriptDebuggerPrivate::watchedCommands

Definition at line 226 of file qscriptdebugger.cpp.

Referenced by handleResponse(), and scheduleCommand().

◆ widgetFactory

QScriptDebuggerWidgetFactoryInterface* QScriptDebuggerPrivate::widgetFactory

Definition at line 242 of file qscriptdebugger.cpp.

Referenced by _q_findInScript(), debuggerEvent(), and QScriptDebuggerPrivate().


The documentation for this class was generated from the following file: