[hatari-devel] Re: Hatari debug mode

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

I CCed the Hatari devel list.

On 25.7.2025 3.33, Dima Sobolev wrote:
I remember that you are big fan of Hatari.

I'm one of the developers.

Could you please help me - I cannot invoke debug mode.AltGR+Pause just shows me the text about debugging xonsole,
but nothing appeared in facr. I tried 2.60 under Windows.

Did you use -W option so that Hatari opens Windows console window at startup?

See manual: https://www.hatari-emu.org/doc/manual.html#Debug_options

If you can build Hatari yourself, attached patch should open the console window automatically when debugger is invoked.

If some Windows user tests it to work as expected, I can push it for Hatari v2.6.1 release...


> Also I read somewhere that F12 menu should have item Debugger, but there is no any.

F12 is for the Hatari options dialog. Debugger options can be set only from the configuration file, not from options dialog.


	- Eero
From d0a1c3cec1d9dfbb64663b0778d5ab68d1466797 Mon Sep 17 00:00:00 2001
From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
Date: Mon, 28 Jul 2025 02:30:58 +0300
Subject: [PATCH 1/2] Open Windows console automatically for Debugger

---
 src/debug/debugui.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/debug/debugui.c b/src/debug/debugui.c
index 563a87d4..932bdcec 100644
--- a/src/debug/debugui.c
+++ b/src/debug/debugui.c
@@ -1109,6 +1109,11 @@ void DebugUI_Init(void)
 	if (debugCommands)
 		return;
 
+#ifdef WIN32
+	/* in case user forgot -W option */
+	Win_ForceCon();
+#endif
+
 	if (!debugOutput)
 		DebugUI_SetLogDefault();
 
-- 
2.39.5



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/