- enhancement: Don't show "\000" of string values in the debug local variables panel.

This commit is contained in:
Roy Qu 2023-07-13 11:01:11 +08:00
parent ab9524e134
commit 7b741dfdb9
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ Red Panda C++ Version 2.23
- fix: Can't correctly uncomment multiple "//" comment lines that doesn't have spaces at linestarts. - fix: Can't correctly uncomment multiple "//" comment lines that doesn't have spaces at linestarts.
- fix: Autoindent for "{" is not correct. - fix: Autoindent for "{" is not correct.
- change: Don't print repeated values in gdb individually - change: Don't print repeated values in gdb individually
- enhancement: Don't show "\000" of string values in the debug local variables panel.
Red Panda C++ Version 2.22 Red Panda C++ Version 2.22

View File

@ -2425,6 +2425,7 @@ void MainWindow::debug()
mDebugger->sendCommand("-gdb-set", "width 0"); // don't wrap output, very annoying mDebugger->sendCommand("-gdb-set", "width 0"); // don't wrap output, very annoying
mDebugger->sendCommand("-gdb-set", "confirm off"); mDebugger->sendCommand("-gdb-set", "confirm off");
mDebugger->sendCommand("-gdb-set", "print repeats 10"); mDebugger->sendCommand("-gdb-set", "print repeats 10");
mDebugger->sendCommand("-gdb-set", "print null-stop");
mDebugger->sendCommand("-gdb-set", QString("print elements %1").arg(pSettings->debugger().arrayElements())); // limit array elements to 500 mDebugger->sendCommand("-gdb-set", QString("print elements %1").arg(pSettings->debugger().arrayElements())); // limit array elements to 500
//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()) { if (pSettings->debugger().useGDBServer()) {