Qore DebugUtil Module Reference 0.1.1
Loading...
Searching...
No Matches
DebugUtil.qm.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
4/* DebugUtil.qm Copyright 2013 - 2024 Qore Technologies, s.r.o.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23*/
24
25// minimum required Qore version
26
27
28
29
47namespace DebugUtil {
49
71class WrapperGetOpt : public GetOpt {
72
73public:
74 constructor(hash options);
75
76
78
110 split(list<string> args, reference<list<string>> wrp_args, reference<*string> pgm_name, reference<list<string>> pgm_args);
111 };
112
114 const QoreDebugWsProtocolHeader = "QoreDebugWsProtocol";
115
118
120class AbstractDebugControl : public Logger::LoggerWrapper {
121
122public:
124 bool showFullException = False;
125
126 const runStateStrings = ('detach': DebugDetach, 'run': DebugRun, 'step': DebugStep, 'stepover': DebugStepOver, 'untilreturn': DebugUntilReturn);
127 const flowStrings = ('none': 0, 'return': DebugFlowReturn, 'break': DebugFlowBreak, 'continue': DebugFlowContinue);
128 const boolStrings = ('false': False, 'true': True);
129 const policyStrings = ('none': BreakpointPolicyNone, 'accept': BreakpointPolicyAccept, 'reject': BreakpointPolicyReject);
130
131 constructor(*LoggerInterface logger);
132
133
134 static list enumFilter(softlist items, *string path);
135
136 static bool evalCondition(softstring value, *string cond);
137
138 // make_json/yaml does not support object code etc. so we need somehow process values
139 static hash serialize(auto val);
140
141 static auto unserialize(auto sv);
142
143 };
144
145};
base class for controlling debugging
Definition DebugUtil.qm.dox.h:120
bool showFullException
for debugging of debug library to see where exception is raised
Definition DebugUtil.qm.dox.h:124
class supporting argument parsing for executing programs to debug
Definition DebugUtil.qm.dox.h:71
split(list< string > args, reference< list< string > > wrp_args, reference< *string > pgm_name, reference< list< string > > pgm_args)
Parses input arguments until a standalone argument is found.
the DebugUtil namespace contains all the definitions in the DebugUtil module
Definition DebugUtil.qm.dox.h:47
const QoreDebugProtocolVersion
The debug protocol version implemented.
Definition DebugUtil.qm.dox.h:117
const QoreDebugWsProtocolHeader
The HTTP header string for the Qore debug protocol version.
Definition DebugUtil.qm.dox.h:114