MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / installRR

Function installRR

src/plugins/debugger/reversedebug/reversedebugger.cpp:154–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void installRR(const QString &id)
155{
156 if (id == "apt") {
157 auto windowService = dpfGetService(dpfservice::WindowService);
158 windowService->installPackages(ReverseDebugger::tr("Reverse debugger"), "apt", { "rr" }, nullptr);
159 } else if (id == "wget") {
160 auto terminalService = dpfGetService(dpfservice::TerminalService);
161 auto command = "cd /tmp && wget https://github.com/rr-debugger/rr/releases/download/5.5.0/rr-5.5.0-Linux-x86_64.deb && sudo dpkg -i rr-5.5.0-Linux-x86_64.deb";
162 uiController.switchContext(dpfservice::TERMINAL_TAB_TEXT);
163 terminalService->sendCommand(command);
164 }
165}
166
167bool ReverseDebugger::checkRRInstalled()
168{

Callers

nothing calls this directly

Calls 1

sendCommandMethod · 0.80

Tested by

no test coverage detected