1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef PYTHONDEBUGGER_H
6#define PYTHONDEBUGGER_H
7
8
9#include <QObject>
10
11class PythonDebuggerPrivate;
12class PythonDebugger : public QObject
13{
14 Q_OBJECT
15public:
16 explicit PythonDebugger(QObject *parent = nullptr);
17 virtual ~PythonDebugger() override;
18
19signals:
20 void sigSendToClient(const QString &uuid, int port, const QString &kit, const QString &projectPath);
21
22public slots:
23 void slotReceiveClientInfo(const QString &uuid,
24 const QString &kit,
25 const QString &pythonExecute,
26 const QString &fileName,
27 const QString &projectPath,
28 const QString &projectCachePath);
29
30private:
31 void registerLaunchDAPConnect();
32 void initialize(const QString &pythonExecute,
33 const QString &fileName,
34 const QString &projectCachePath);
35
36 PythonDebuggerPrivate *const d;
37};
38
39#endif // PYTHONDEBUGGER_H
40