8#include <QtCore/qjsonobject.h>
9#include <QtCore/qjsonarray.h>
74 debugger->setBreakOnThrow(m_breakOnThrow);
76 for (
const BreakPoint &breakPoint : std::as_const(m_breakPoints))
77 if (breakPoint.enabled)
78 debugger->addBreakPoint(breakPoint.fileName, breakPoint.lineNr, breakPoint.condition);
127 const int id = ++m_lastBreakPointId;
134 BreakPoint breakPoint = m_breakPoints.
value(
id);
135 if (!breakPoint.isValid())
140 if (breakPoint.enabled)
142 debugger->removeBreakPoint(breakPoint.fileName, breakPoint.lineNr);
153 BreakPoint &breakPoint = m_breakPoints[
id];
154 if (!breakPoint.isValid() || breakPoint.enabled == onoff)
156 breakPoint.enabled = onoff;
160 debugger->addBreakPoint(breakPoint.fileName, breakPoint.lineNr, breakPoint.condition);
162 debugger->removeBreakPoint(breakPoint.fileName, breakPoint.lineNr);
171 if (
i->lineNr == lineNumber &&
fileName.endsWith(
i->fileName))
172 ids.push_back(
i.key());
179 if (onoff != m_breakOnThrow) {
180 m_breakOnThrow = onoff;
194#include "moc_qv4debuggeragent.cpp"
key_iterator keyEnd() const noexcept
bool remove(const Key &key)
Removes the item that has the key from the hash.
iterator begin()
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
key_iterator keyBegin() const noexcept
T value(const Key &key) const noexcept
iterator end() noexcept
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last ...
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
\inmodule QtCore\reentrant
void push_back(const QJsonValue &t)
This function is provided for STL compatibility.
\inmodule QtCore\reentrant
iterator insert(const QString &key, const QJsonValue &value)
Inserts a new item with the key key and a value of value.
bool isEmpty() const
Returns true if the object is empty.
qsizetype removeAll(const AT &t)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void destroyed(QObject *=nullptr)
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointe...
\macro QT_RESTRICTED_CAST_FROM_ASCII
void send(QJsonObject v4Payload)
void setBreakOnThrow(bool onoff)
QV4Debugger * pausedDebugger() const
const QList< QV4Debugger * > & debuggers()
QList< int > breakPointIds(const QString &fileName, int lineNumber) const
void removeAllBreakPoints()
void handleDebuggerDeleted(QObject *debugger)
int addBreakPoint(const QString &fileName, int lineNumber, bool enabled=true, const QString &condition=QString())
void addDebugger(QV4Debugger *debugger)
void removeDebugger(QV4Debugger *debugger)
void clearAllPauseRequests()
void pause(QV4Debugger *debugger) const
void removeBreakPoint(int id)
void enableBreakPoint(int id, bool onoff)
void debuggerPaused(QV4Debugger *debugger, QV4Debugger::PauseReason reason)
void debuggerPaused(QV4Debugger *self, QV4Debugger::PauseReason reason)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
constexpr T qAbs(const T &t)
GLenum GLenum GLsizei const GLuint * ids
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define QStringLiteral(str)
static DebuggerProgram debugger
myObject disconnect()
[26]
bool contains(const AT &t) const noexcept