From 8ecfc82d8f3ddc531747b4011b885d056825db14 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Mon, 19 Jan 2026 08:43:52 +0100 Subject: [PATCH] RemedyBGPlugin: Look for .rdbg file in project dir if BinaryUnderDebug not set --- src/text_editor/plugin_remedybg.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/text_editor/plugin_remedybg.cpp b/src/text_editor/plugin_remedybg.cpp index 031cd95..bb0ed2a 100644 --- a/src/text_editor/plugin_remedybg.cpp +++ b/src/text_editor/plugin_remedybg.cpp @@ -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); }