mirror of https://github.com/buggins/dlangide.git
Merge pull request #84 from keywan-ghadami/debug-not-existing-source-file
on updating source file on debuging check if file exists before openi…
This commit is contained in:
commit
f85cb7da9c
|
@ -82,7 +82,12 @@ class DebuggerUIHandler : DebuggerCallback, StackFrameSelectedHandler {
|
||||||
if (sourceFile) {
|
if (sourceFile) {
|
||||||
_ide.openSourceFile(sourceFile.filename, sourceFile, true);
|
_ide.openSourceFile(sourceFile.filename, sourceFile, true);
|
||||||
} else {
|
} else {
|
||||||
_ide.openSourceFile(location.fullFilePath, null, true);
|
import std.file;
|
||||||
|
if (exists(location.fullFilePath)) {
|
||||||
|
_ide.openSourceFile(location.fullFilePath, null, true);
|
||||||
|
} else {
|
||||||
|
Log.d("can not update location sourcefile does not exists:" ~ location.fullFilePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DSourceEdit[] editors = _ide.allOpenedEditors;
|
DSourceEdit[] editors = _ide.allOpenedEditors;
|
||||||
|
|
Loading…
Reference in New Issue