aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4debugging_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-09-10 12:24:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-10 15:49:24 +0200
commitac50d350a30c754eda7b70f4aef0badb11bfb7ef (patch)
tree22d523942a178c5307ff47dd38df261e0c3c19ac /src/qml/jsruntime/qv4debugging_p.h
parent59ed8c355b99df0b949003a438ab850274261aa0 (diff)
V4 debugger: change agent API to work on all debuggers.
From a client point of view, there is no way to know which engine is executing which script. So, instead of passing in a debugger for a specific engine, have the agent set breakpoints on all debuggers. Change-Id: I53b8cbc1bdc02c7705042f2ac3a99a041992c134 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4debugging_p.h')
-rw-r--r--src/qml/jsruntime/qv4debugging_p.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4debugging_p.h b/src/qml/jsruntime/qv4debugging_p.h
index d71b25f378..908854865d 100644
--- a/src/qml/jsruntime/qv4debugging_p.h
+++ b/src/qml/jsruntime/qv4debugging_p.h
@@ -140,9 +140,10 @@ public:
void addDebugger(Debugger *debugger);
void removeDebugger(Debugger *debugger);
- void pause(Debugger *debugger);
- void addBreakPoint(Debugger *debugger, const QString &fileName, int lineNumber);
- void removeBreakPoint(Debugger *debugger, const QString &fileName, int lineNumber);
+ void pause(Debugger *debugger) const;
+ void pauseAll() const;
+ void addBreakPoint(const QString &fileName, int lineNumber) const;
+ void removeBreakPoint(const QString &fileName, int lineNumber) const;
Q_INVOKABLE virtual void debuggerPaused(QV4::Debugging::Debugger *debugger) = 0;