| 120 | } |
| 121 | |
| 122 | bool 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 | |
| 138 | void DebuggerClientDap::processResponseInitialize( const Response& response, const nlohmann::json&, |
| 139 | const SessionId& sessionId, |
no test coverage detected