From 7b9c5b378acda04e5788ac4cba6448049b069922 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Mon, 23 Oct 2023 10:33:16 +0800 Subject: [PATCH] - fix: Should cd to working directory when debugging. --- NEWS.md | 2 ++ RedPandaIDE/mainwindow.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 0f28c305..4aa885e3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,6 +10,8 @@ Red Panda C++ Version 2.26 - enhancement: Code suggestions for namespace alias. - fix: Correctly handle statements like 'using xxx::operator()'. - fix: Link in the project options dialog / precompiled header pages is not clickable. + - change: Don't change caret position when ctrl+click. + - fix: Should cd to working directory when debugging. Red Panda C++ Version 2.25 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index c79a05c9..971999cc 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -2496,7 +2496,7 @@ void MainWindow::debug() mDebugger->sendCommand("-gdb-set", "print null-stop"); mDebugger->sendCommand("-gdb-set", QString("print elements %1").arg(pSettings->debugger().arrayElements())); // limit array elements to 30 mDebugger->sendCommand("-gdb-set", QString("print characters %1").arg(pSettings->debugger().characters())); // limit array elements to 300 - //mDebugger->sendCommand("-environment-cd", QString("\"%1\"").arg(extractFileDir(filePath))); // restore working directory + mDebugger->sendCommand("-environment-cd", QString("\"%1\"").arg(extractFileDir(filePath))); // restore working directory if (pSettings->debugger().useGDBServer()) { mDebugger->sendCommand("-target-select",QString("remote localhost:%1").arg(pSettings->debugger().GDBServerPort())); if (!debugInferiorhasBreakpoint() || !debugEnabled) {