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

Method handleUpdateDebugLine

src/plugins/debugger/dap/dapdebugger.cpp:1693–1706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1691}
1692
1693void DAPDebugger::handleUpdateDebugLine()
1694{
1695 auto curFrame = d->stackModel.currentFrame();
1696 if (curFrame.line != -1) {
1697 QString localFile;
1698 localFile = d->isRemote ? transformRemotePath(curFrame.file) : curFrame.file;
1699
1700 if (QFileInfo(localFile).exists()) {
1701 editor.setDebugLine(localFile, curFrame.line - 1);
1702 } else if (!curFrame.address.isEmpty()) {
1703 disassemble(curFrame.address);
1704 }
1705 }
1706}
1707
1708QString DAPDebugger::transformRemotePath(const QString &remotePath)
1709{

Callers

nothing calls this directly

Calls 5

disassembleFunction · 0.85
currentFrameMethod · 0.80
existsMethod · 0.45
setDebugLineMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected