RemedyBGPlugin: Look for .rdbg file in project dir if BinaryUnderDebug not set
This commit is contained in:
@@ -2116,6 +2116,15 @@ bool RDBG_InitConnection(mco_coro *co) {
|
||||
}
|
||||
}
|
||||
|
||||
if (file.len == 0) {
|
||||
Scratch scratch;
|
||||
for (FileIter it = IterateFiles(scratch, ProjectDirectory); IsValid(it); Advance(&it)) {
|
||||
if (EndsWith(it.filename, ".rdbg")) {
|
||||
file = Intern(&GlobalInternTable, it.absolute_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (file.len == 0) {
|
||||
file = QueryUserFile(co);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user