- fix: wrong project program directory parameter is sent to the debugger

This commit is contained in:
Roy Qu 2022-01-13 20:19:47 +08:00
parent 82bbd7a846
commit a102ee73fa
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ Red Panda C++ Version 0.13.2
- fix: project's type setting won't be saved
- fix: If project's compiler set is not the same with the default compiler set, auto openned project's file will use wrong compiler set to do syntax check.
- fix: open a project file through "File"->"Open" will not correctly connect it with the project internally
- fix: wrong project program directory parameter is sent to the debugger
Red Panda C++ Version 0.13.1
- enhancement: suppoort localization info in project templates

View File

@ -1697,7 +1697,7 @@ void MainWindow::debug()
mDebugger->sendCommand("-gdb-set", "confirm off");
mDebugger->sendCommand("-gdb-set", "print repeats 0"); // don't repeat elements
mDebugger->sendCommand("-gdb-set", "print elements 0"); // don't limit elements
mDebugger->sendCommand("-environment-cd", excludeTrailingPathDelimiter(debugFile.path())); // restore working directory
mDebugger->sendCommand("-environment-cd", QString("\"%1\"").arg(excludeTrailingPathDelimiter(filePath))); // restore working directory
if (pSettings->debugger().useGDBServer()) {
mDebugger->sendCommand("-target-select",QString("remote localhost:%1").arg(pSettings->debugger().GDBServerPort()));
if (!debugInferiorhasBreakpoint()) {