MCPcopy Create free account
hub / github.com/dfranx/SHADERed / StartDebugging

Method StartDebugging

src/SHADERed/Objects/DebugAdapterProtocol.cpp:385–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 m_session->bind(in, out);
384 }
385 void DebugAdapterProtocol::StartDebugging(const std::string& path, ShaderStage stage)
386 {
387 if (!m_started)
388 return;
389
390 dap::StoppedEvent event;
391 event.reason = "pause";
392 event.threadId = (int)stage;
393 m_session->send(event);
394
395 m_path = path;
396 m_stage = stage;
397 m_sessionEnded = false;
398 m_lastStep = false;
399
400 if (m_debugger->GetSPIRV().size() > 0)
401 m_parser.Parse(m_debugger->GetSPIRV(), false);
402 }
403 void DebugAdapterProtocol::SendStepEvent()
404 {
405 dap::StoppedEvent event;

Callers

nothing calls this directly

Calls 4

GetSPIRVMethod · 0.80
sendMethod · 0.45
sizeMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected