forked from compiler-research/xeus-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxdebugger.cpp
More file actions
70 lines (61 loc) · 2.46 KB
/
xdebugger.cpp
File metadata and controls
70 lines (61 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/************************************************************************************
* Copyright (c) 2023, xeus-cpp contributors *
* Copyright (c) 2023, Johan Mabille, Loic Gouarin, Sylvain Corlay, Wolf Vollprecht *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
************************************************************************************/
#include "xeus-cpp/xdebugger.hpp"
#include "xeus-zmq/xmiddleware.hpp"
#include "xeus/xinterpreter.hpp"
#include "xeus/xsystem.hpp"
#include "xeus-zmq/xmiddleware.hpp"
namespace xcpp
{
debugger::debugger(xeus::xcontext& context, const xeus::xconfiguration& config,
const std::string& user_name, const std::string& session_id,
const nl::json& lldb_config)
: xdebugger_base(context)
, p_lldb_dap_client(nullptr)
, m_lldb_host("localhost")
, m_lldb_port("12345")
, m_lldb_config(lldb_config)
{
}
debugger::~debugger()
{
// delete p_lldb_dap_client;
// p_lldb_dap_client = nullptr;
}
bool debugger::start()
{
return true;
}
void debugger::stop()
{
return;
}
xeus::xdebugger_info debugger::get_debugger_info() const
{
// return temporary values
return xeus::xdebugger_info(1,
"temp_prefix",
"temp_suffix",
true,
{"Temporary Exceptions"},
true);
}
std::string debugger::get_cell_temporary_file(const std::string& code) const
{
return "";
}
std::unique_ptr<xeus::xdebugger> make_cpp_debugger(xeus::xcontext& context,
const xeus::xconfiguration& config,
const std::string& user_name,
const std::string& session_id,
const nl::json& lldb_config)
{
return std::unique_ptr<xeus::xdebugger>(new debugger(context, config, user_name, session_id, lldb_config));
}
}