Debian Codegraph @

DebugAdapterClient/BreakpointsHelper.hpp

raw
1 #ifndef BREAKPOINTSHELPER_HPP
2 #define BREAKPOINTSHELPER_HPP
3
4 #include "DebugSession.hpp"
5 #include "clModuleLogger.hpp"
6 #include "cl_command_event.h"
7 #include "codelite_events.h"
8 #include "dap/Client.hpp"
9 #include "dap/dap.hpp"
10 #include "globals.h"
11 #include "imanager.h"
12
13 #include <unordered_map>
14 #include <unordered_set>
15
16 class BreakpointsHelper : public wxEvtHandler
17 {
18 std::unordered_map<wxString, clDebuggerBreakpoint::Vec_t> m_ui_breakpoints;
19 dap::Client& m_client;
20 const DebugSession& m_session;
21 clModuleLogger& LOG;
22
23 protected:
24 void OnToggleBreakpoint(clDebugEvent& event);
25 wxString NormalisePathForSend(const wxString& path) const;
26
27 public:
28 BreakpointsHelper(dap::Client& client, const DebugSession& session, clModuleLogger& log);
29 virtual ~BreakpointsHelper();
30 /// apply breakpoints. if path is empty, apply all breakpoints, to all the sources
31 void ApplyBreakpoints(const wxString& path);
32 };
33
34 #endif // BREAKPOINTSHELPER_HPP