34 enum class DebuggerMode :
int {
89 virtual ::ScriptDebuggerSettings
const& getSettings() const ;
92 virtual
bool connect(::
std::
string const& host, ushort port) ;
95 virtual
bool listen(ushort port) ;
101 virtual
void startProfiler() ;
104 virtual ::
std::vector<::Core::
Path> stopProfiler() ;
107 virtual
bool isStatPublisherEnabled() const ;
110 virtual
void publishStats(uint64 collectedTick, ::
std::vector<::
ScriptStat> const& stats) ;
120 ::cereal::ReflectionCtx&
ctx,
121 ::Scripting::ScriptEngine& scriptEngine,
127 MCAPI
void _debuggerMessageHandler(::
std::string_view message);
129 MCAPI
void _handleCommandMessage(::ScriptDebuggerMessages::
CommandMessage const& commandMessage);
131 MCAPI
void _handleStopProfilerMessage(::ScriptDebuggerMessages::ProfilerMessage const& profilerMessage);
133 MCAPI ::
std::
string _sanitizeHostName(::
std::
string const& host) const;
135 MCAPI ushort _sanitizePort(uint port) const;
137 MCAPI
void _sendNotification(::LogLevel message, ::
std::string_view logLevel);
139 MCAPI
bool _tryAttachRuntime(
bool expectRuntime);
141 MCAPI
bool _trySelectTarget();
143 MCAPI
void sendLog(::LogLevel logLevel, ::
std::string_view message);
147 MCAPI
void waitAutoAttach(::
std::chrono::seconds waitDuration);
157 ::cereal::ReflectionCtx&
ctx,
158 ::Scripting::ScriptEngine& scriptEngine,
176 MCAPI
bool $connect(::
std::
string const& host, ushort port);
178 MCAPI
bool $listen(ushort port);
182 MCAPI
void $startProfiler();
184 MCAPI ::
std::vector<::Core::
Path> $stopProfiler();
186 MCAPI
bool $isStatPublisherEnabled() const;
188 MCAPI
void $publishStats(uint64 collectedTick, ::
std::vector<::
ScriptStat> const& stats);
194 MCAPI static
void** $vftableForIScriptDebugger();
196 MCAPI static
void** $vftableForIScriptStatPublisher();