RemedyBGPlugin: Look for .rdbg file in project dir if BinaryUnderDebug not set

This commit is contained in:
Krzosa Karol
2026-01-19 08:43:52 +01:00
parent 9d60b110f5
commit 8ecfc82d8f

View File

@@ -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) { if (file.len == 0) {
file = QueryUserFile(co); file = QueryUserFile(co);
} }