forked from jupyter-xeus/xeus-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxdebugpy_client.hpp
44 lines (33 loc) · 1.49 KB
/
xdebugpy_client.hpp
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
/***************************************************************************
* Copyright (c) 2018, Martin Renou, Johan Mabille, Sylvain Corlay, and *
* Wolf Vollprecht *
* Copyright (c) 2018, QuantStack *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
#ifndef XPYT_DEBUGPY_CLIENT_HPP
#define XPYT_DEBUGPY_CLIENT_HPP
#include "xeus-zmq/xdap_tcp_client.hpp"
namespace xpyt
{
using xeus::xdap_tcp_client;
using xeus::xdap_tcp_configuration;
class xdebugpy_client : public xdap_tcp_client
{
public:
using base_type = xdap_tcp_client;
using event_callback = base_type::event_callback;
xdebugpy_client(xeus::xcontext& context,
const xeus::xconfiguration& config,
int socket_linger,
const xdap_tcp_configuration& dap_config,
const event_callback& cb);
virtual ~xdebugpy_client() = default;
private:
void handle_event(nl::json message) override;
nl::json get_stack_frames(int thread_id, int seq);
};
}
#endif