LeviLamina
Loading...
Searching...
No Matches
ScriptDebugCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOutput;
12class IScriptDebugger;
13// clang-format on
14
16public:
17 // ScriptDebugCommand inner types define
18 enum class DebuggerAction : int {
19 Listen = 0,
20 Connect = 1,
21 Close = 2,
22 };
23
24 enum class DiagnosticsAction : int {
25 StartCapture = 0,
26 StopCapture = 1,
27 };
28
29 enum class Mode : int {
30 Unknown = 0,
31 Debugger = 1,
32 Profiler = 2,
33 Diagnostics = 3,
34 };
35
36 enum class ProfilerAction : int {
37 Start = 0,
38 Stop = 1,
39 };
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void _handleDebuggerAttach(
45 ::IScriptDebugger* debugger,
46 ::std::string const& locPrefix,
47 ::ScriptDebugCommand::DebuggerAction action,
48 ::std::string const& host,
49 ushort port,
50 ::CommandOutput& output
51 ) const;
52
53 MCAPI void _handleDiagnosticsAction(
54 ::DebuggerDiagnosticsPublishToFile* diagnosticsPublishToFile,
55 ::std::string const& locPrefix,
56 ::ScriptDebugCommand::DiagnosticsAction action,
57 ::CommandOutput& output
58 ) const;
59
60 MCAPI void _handleProfilerAction(
61 ::IScriptDebugger* debugger,
62 ::std::string const& locPrefix,
63 ::ScriptDebugCommand::ProfilerAction action,
64 ::CommandOutput& output
65 ) const;
66 // NOLINTEND
67};
Definition CommandOutput.h:20
Definition Command.h:17
Definition DebuggerDiagnosticsPublishToFile.h:17
Definition IScriptDebugger.h:11
Definition ScriptDebugCommand.h:15