MCPcopy Create free account
hub / github.com/SpartanJ/eepp / start

Method start

src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool DebuggerClientDap::start() {
123 bool started = false;
124 SessionId sessionId = mCurrentSessionId;
125 if ( mSessions[sessionId].bus && ( started = mSessions[sessionId].bus->start() ) ) {
126 mSessions[sessionId].bus->startAsyncRead( [this, sessionId]( const char* bytes, size_t n ) {
127 asyncRead( bytes, n, sessionId );
128 } );
129 } else {
130 Log::warning( "DebuggerClientDap::start: could not initialize the debugger" );
131 return false;
132 }
133 mStarted = started;
134 requestInitialize( mCurrentSessionId );
135 return started;
136}
137
138void DebuggerClientDap::processResponseInitialize( const Response& response, const nlohmann::json&,
139 const SessionId& sessionId,

Callers 1

processRequestMethod · 0.45

Calls 2

warningFunction · 0.85
startAsyncReadMethod · 0.45

Tested by

no test coverage detected