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
qv4debugging_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QV4DEBUGGING_H
6#define QV4DEBUGGING_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQml/private/qv4global_p.h>
20#include <QtQml/private/qv4staticvalue_p.h>
21#include <QtCore/qobject.h>
22
23QT_BEGIN_NAMESPACE
24
25namespace QV4 {
26namespace Debugging {
27
28#if !QT_CONFIG(qml_debug)
29
31{
32public:
33 bool pauseAtNextOpportunity() const { return false; }
37 void aboutToThrow() {}
38};
39
40#else
41
42class Q_QML_EXPORT Debugger : public QObject
43{
45
46public:
48 virtual bool pauseAtNextOpportunity() const = 0;
49 virtual void maybeBreakAtInstruction() = 0;
50 virtual void enteringFunction() = 0;
51 virtual void leavingFunction(const ReturnedValue &retVal) = 0;
52 virtual void aboutToThrow() = 0;
53};
54
55#endif // QT_NO_QML_DEBUGGING
56
57} // namespace Debugging
58} // namespace QV4
59
60QT_END_NAMESPACE
61
62#endif // QV4DEBUGGING_H
Definition qjsvalue.h:23