MCPcopy Create free account
hub / github.com/KDE/kdevelop / testRemoteDebugging

Method testRemoteDebugging

plugins/lldb/unittests/test_lldb.cpp:245–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void LldbTest::testRemoteDebugging()
246{
247 KProcess gdbServer;
248 gdbServer << QStringLiteral("lldb-server") << QStringLiteral("gdbserver") << QStringLiteral("*:1234");
249 gdbServer.start();
250 QVERIFY(gdbServer.waitForStarted());
251
252 auto *session = new TestDebugSession;
253 TestLaunchConfiguration cfg;
254
255 cfg.config().writeEntry(Config::LldbRemoteDebuggingEntry, true);
256 cfg.config().writeEntry(Config::LldbRemoteServerEntry, "localhost:1234");
257 cfg.config().writeEntry(Config::LldbRemotePathEntry, "/tmp");
258
259 breakpoints()->addCodeBreakpoint(debugeeUrl(), 34);
260 ActiveStateSessionSpy sessionSpy(session);
261 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
262
263 session->run();
264 WAIT_FOR_STATE(session, DebugSession::EndedState);
265}
266
267void LldbTest::testVariablesLocals()
268{

Callers

nothing calls this directly

Calls 5

writeEntryMethod · 0.80
startMethod · 0.45
configMethod · 0.45
addCodeBreakpointMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected