Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qv4debugclient_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4
5#ifndef QV4DEBUGCLIENT_P_H
6#define QV4DEBUGCLIENT_P_H
7
9#include <QtCore/qjsonvalue.h>
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
23
26{
27 Q_OBJECT
28 Q_DECLARE_PRIVATE(QV4DebugClient)
29
30public:
38
40 {
43 };
44
50
52
53 void connect();
54 void disconnect();
55
56 void interrupt();
57 void continueDebugging(StepAction stepAction);
58 void evaluate(const QString &expr, int frame = -1, int context = -1);
59 void lookup(const QList<int> &handles, bool includeSource = false);
60 void backtrace(int fromFrame = -1, int toFrame = -1, bool bottom = false);
61 void frame(int number = -1);
62 void scope(int number = -1, int frameNumber = -1);
63 void scripts(int types = 4, const QList<int> &ids = QList<int>(), bool includeSource = false);
64 void setBreakpoint(const QString &target, int line = -1, int column = -1, bool enabled = true,
65 const QString &condition = QString(), int ignoreCount = -1);
66 void clearBreakpoint(int breakpoint);
67 void changeBreakpoint(int breakpoint, bool enabled);
68 void setExceptionBreak(Exception type, bool enabled = false);
69 void version();
70
71 Response response() const;
72
73protected:
74 void messageReceived(const QByteArray &data) override;
75
77 void connected();
79 void result();
80 void failure();
81 void stopped();
82};
83
84QT_END_NAMESPACE
85
86#endif // QV4DEBUGCLIENT_P_H
QQmlDebugConnection * connection() const
void sendMessage(const QByteArray &command, const QJsonObject &args=QJsonObject())
QByteArray packMessage(const QByteArray &type, const QJsonObject &object)
void onStateChanged(QQmlDebugClient::State state)
void scripts(int types=4, const QList< int > &ids=QList< int >(), bool includeSource=false)
void frame(int number=-1)
void changeBreakpoint(int breakpoint, bool enabled)
QV4DebugClient(QQmlDebugConnection *connection)
void messageReceived(const QByteArray &data) override
void evaluate(const QString &expr, int frame=-1, int context=-1)
void setBreakpoint(const QString &target, int line=-1, int column=-1, bool enabled=true, const QString &condition=QString(), int ignoreCount=-1)
void interrupted()
void lookup(const QList< int > &handles, bool includeSource=false)
void continueDebugging(StepAction stepAction)
void scope(int number=-1, int frameNumber=-1)
void setExceptionBreak(Exception type, bool enabled=false)
Response response() const
void backtrace(int fromFrame=-1, int toFrame=-1, bool bottom=false)
void clearBreakpoint(int breakpoint)
Combined button and popup list for selecting options.
const char * SCOPE
const char * SETEXCEPTIONBREAK
const char * LINE
const char * ALL
const char * CLEARBREAKPOINT
const char * FLAGS
const char * SCRIPTREGEXP
const char * SEQ
const char * TYPES
const char * TYPE
const char * COMMAND
const char * EVENT
const char * HANDLES
const char * TOLINE
const char * REQUEST
const char * SCRIPT
const char * IGNORECOUNT
QT_BEGIN_NAMESPACE const char * V8REQUEST
const char * NEXT
const char * INTERRUPT
const char * NUMBER
const char * EVALUATE
const char * BOTTOM
const char * BREAKPOINT
const char * GARBAGECOLLECTOR
const char * FILTER
const char * STEPCOUNT
const char * OUT
const char * DISCONNECT
const char * CONDITION
const char * CONTINEDEBUGGING
const char * CHANGEBREAKPOINT
const char * GLOBAL
const char * FRAME
const char * SOURCE
const char * UNCAUGHT
const char * TARGET
const char * SCOPES
const char * INCLUDESOURCE
const char * STEPACTION
const char * SCRIPTS
const char * BACKTRACE
const char * ENABLED
#define VARIANTMAPINIT
const char * LOOKUP
const char * VERSION
const char * IN
const char * SETBREAKPOINT
const char * CONNECT
const char * FROMLINE
const char * TOFRAME
const char * FRAMENUMBER
const char * FROMFRAME
const char * CONTEXT
const char * ARGUMENTS
const char * IDS
const char * V8MESSAGE
const char * DISABLEBREAK
const char * COLUMN
const char * EXPRESSION