diff --git a/NEWS.md b/NEWS.md index 13922f0f..23b11fb2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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: Autoindent for "{" is not correct. - 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 diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index ee730f2e..39267a51 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -2425,6 +2425,7 @@ void MainWindow::debug() mDebugger->sendCommand("-gdb-set", "width 0"); // don't wrap output, very annoying mDebugger->sendCommand("-gdb-set", "confirm off"); 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("-environment-cd", QString("\"%1\"").arg(extractFileDir(filePath))); // restore working directory if (pSettings->debugger().useGDBServer()) {