1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
---|---|
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #include "debugengine.h" |
6 | |
7 | #include "dapsession.h" |
8 | |
9 | #include "debugger/java/javadebugger.h" |
10 | #include "debugger/python/pythondebugger.h" |
11 | |
12 | #include <QDBusConnection> |
13 | |
14 | DebugEngine::DebugEngine(QObject *parent) |
15 | : QObject(parent) |
16 | { |
17 | dapSession.reset(new DapSession()); |
18 | javaDebugger.reset(new JavaDebugger()); |
19 | pythonDebugger.reset(new PythonDebugger()); |
20 | } |
21 | |
22 | bool DebugEngine::start() |
23 | { |
24 | return dapSession->start(); |
25 | } |
26 | |
27 | void DebugEngine::stop() |
28 | { |
29 | dapSession->stop(); |
30 | } |
31 | |
32 | bool DebugEngine::exit() |
33 | { |
34 | // TODO(mozart) |
35 | return true; |
36 | } |
37 | |
38 | bool DebugEngine::initialize() |
39 | { |
40 | // TODO(mozart) |
41 | return true; |
42 | } |
43 | |
44 | |
45 |