- fix: correctly display watch & local variable names when debugging
This commit is contained in:
parent
4259480471
commit
78c3387d7f
5
NEWS.md
5
NEWS.md
|
@ -2,8 +2,9 @@ Version 0.8.2 For Dev-C++ 7 Beta
|
||||||
- fix: highlighter can't correctly find the end of ANSI C-style Comments
|
- fix: highlighter can't correctly find the end of ANSI C-style Comments
|
||||||
- enhancement: add default color scheme to themes. Change theme option will change color scheme too.
|
- enhancement: add default color scheme to themes. Change theme option will change color scheme too.
|
||||||
- fix: when changing options in the option dialog's color scheme panle, color of the demo editor won't be not correctly updated
|
- fix: when changing options in the option dialog's color scheme panle, color of the demo editor won't be not correctly updated
|
||||||
- enhancement: add option to auto clear parsed symbols when the editor is hidden ( to reduce total memory usage / turned off by default)
|
- enhancement: auto clear parsed symbols when the editor is hidden ( to reduce memory usage of un-active editors)
|
||||||
- fix: correct set the position of chinese input methods
|
- fix: when inputing in the editor, correctly set the position of the input method panel
|
||||||
|
- fix: correctly display watch & local variable names when debugging
|
||||||
|
|
||||||
Version 0.8.1 For Dev-C++ 7 Beta
|
Version 0.8.1 For Dev-C++ 7 Beta
|
||||||
- fix: ConsolePaurser.exe only exits when press ENTER
|
- fix: ConsolePaurser.exe only exits when press ENTER
|
||||||
|
|
|
@ -1450,9 +1450,9 @@ void DebugReader::runNextCmd()
|
||||||
emit cmdStarted();
|
emit cmdStarted();
|
||||||
|
|
||||||
QByteArray s;
|
QByteArray s;
|
||||||
s=pCmd->command.toLocal8Bit();
|
s=pCmd->command.toUtf8();
|
||||||
if (!pCmd->params.isEmpty()) {
|
if (!pCmd->params.isEmpty()) {
|
||||||
s+=' '+pCmd->params.toLocal8Bit();
|
s+=' '+pCmd->params.toUtf8();
|
||||||
}
|
}
|
||||||
s+= "\n";
|
s+= "\n";
|
||||||
if (mProcess->write(s)<0) {
|
if (mProcess->write(s)<0) {
|
||||||
|
@ -1681,7 +1681,7 @@ void DebugReader::run()
|
||||||
readed = mProcess->readAll();
|
readed = mProcess->readAll();
|
||||||
buffer += readed;
|
buffer += readed;
|
||||||
if (getLastAnnotation(buffer) == AnnotationType::TPrompt) {
|
if (getLastAnnotation(buffer) == AnnotationType::TPrompt) {
|
||||||
mOutput = QString::fromLocal8Bit(buffer);
|
mOutput = QString::fromUtf8(buffer);
|
||||||
processDebugOutput();
|
processDebugOutput();
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
mCmdRunning = false;
|
mCmdRunning = false;
|
||||||
|
|
|
@ -1279,6 +1279,7 @@ void MainWindow::debug()
|
||||||
if (!mDebugger->start())
|
if (!mDebugger->start())
|
||||||
return;
|
return;
|
||||||
filePath.replace('\\','/');
|
filePath.replace('\\','/');
|
||||||
|
mDebugger->sendCommand("set","host charset UTF-8");
|
||||||
mDebugger->sendCommand("file", '"' + filePath + '"');
|
mDebugger->sendCommand("file", '"' + filePath + '"');
|
||||||
|
|
||||||
if (mProject->options().type == ProjectType::DynamicLib) {
|
if (mProject->options().type == ProjectType::DynamicLib) {
|
||||||
|
|
|
@ -3262,7 +3262,21 @@ void Settings::CodeCompletion::doLoad()
|
||||||
mIgnoreCase = boolValue("ignore_case",true);
|
mIgnoreCase = boolValue("ignore_case",true);
|
||||||
mAppendFunc = boolValue("append_func",true);
|
mAppendFunc = boolValue("append_func",true);
|
||||||
mShowCodeIns = boolValue("show_code_ins",true);
|
mShowCodeIns = boolValue("show_code_ins",true);
|
||||||
mClearWhenEditorHidden = boolValue("clear_when_editor_hidden",false);
|
|
||||||
|
bool doClear = true;
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
MEMORYSTATUSEX statex;
|
||||||
|
|
||||||
|
statex.dwLength = sizeof (statex);
|
||||||
|
|
||||||
|
GlobalMemoryStatusEx (&statex);
|
||||||
|
if (statex.ullAvailPhys > (long long int)3*1024*1024*1024) {
|
||||||
|
doClear = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
mClearWhenEditorHidden = boolValue("clear_when_editor_hidden",doClear);
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings::CodeFormatter::CodeFormatter(Settings *settings):
|
Settings::CodeFormatter::CodeFormatter(Settings *settings):
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#define DEVCPP_VERSION "beta.0.8.1"
|
#define DEVCPP_VERSION "beta.0.8.2"
|
||||||
|
|
||||||
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
|
Loading…
Reference in New Issue