mirror of https://github.com/buggins/dlangide.git
settings: use mago-mi for debugging on Windows
This commit is contained in:
parent
ac07ac9868
commit
e0429ac6f0
|
@ -72,7 +72,11 @@ SettingsPage createSettingsPages() {
|
|||
rdmd.addExecutableFileNameEdit("dlang/rdmd/executable", UIString("rdmd executable"d), "rdmd");
|
||||
rdmd.addStringEdit("dlang/rdmd/additional_params", UIString("rdmd additional params"d), "");
|
||||
SettingsPage ddebug = dlang.addChild("dlang/debugger", UIString("Debugger"d));
|
||||
ddebug.addExecutableFileNameEdit("dlang/debugger/executable", UIString("Debugger executable"d), "gdb");
|
||||
version (Windows) {
|
||||
ddebug.addExecutableFileNameEdit("dlang/debugger/executable", UIString("Debugger executable"d), "gdb");
|
||||
} else {
|
||||
ddebug.addExecutableFileNameEdit("dlang/debugger/executable", UIString("Debugger executable"d), "mago-mi");
|
||||
}
|
||||
SettingsPage terminal = dlang.addChild("dlang/terminal", UIString("Terminal"d));
|
||||
terminal.addExecutableFileNameEdit("dlang/terminal/executable", UIString("Terminal executable"d), "xterm");
|
||||
|
||||
|
|
|
@ -28,7 +28,11 @@ class IDESettings : SettingsFile {
|
|||
ui.setIntegerDef("hintingMode", 1);
|
||||
ui.setIntegerDef("minAntialiasedFontSize", 0);
|
||||
ui.setFloatingDef("fontGamma", 0.8);
|
||||
debuggerSettings.setStringDef("executable", "gdb");
|
||||
version (Windows) {
|
||||
debuggerSettings.setStringDef("executable", "mago-mi");
|
||||
} else {
|
||||
debuggerSettings.setStringDef("executable", "gdb");
|
||||
}
|
||||
terminalSettings.setStringDef("executable", "xterm");
|
||||
dubSettings.setStringDef("executable", "dub");
|
||||
dubSettings.setStringDef("additional_params", "");
|
||||
|
@ -175,7 +179,11 @@ class IDESettings : SettingsFile {
|
|||
}
|
||||
|
||||
@property string debuggerExecutable() {
|
||||
return debuggerSettings.getString("executable", "gdb");
|
||||
version (Windows) {
|
||||
return debuggerSettings.getString("executable", "mago-mi");
|
||||
} else {
|
||||
return debuggerSettings.getString("executable", "gdb");
|
||||
}
|
||||
}
|
||||
|
||||
@property string terminalExecutable() {
|
||||
|
|
Loading…
Reference in New Issue