On Tue, Apr 04, 2023 at 03:11:01PM +0300, Eli Zaretskii wrote:
> > Because info uses the terminal for display, it is usually best to debug it
> > from a separate terminal window. I use a bash function for this:
> >
> > function attach () {
> > gdb $1 `pgrep $1`
> > }
> >
> > and run "attach ginfo" to attach to a running ginfo instance.
>
> There's an easier way:
>
> (gdb) ./ginfo.exe
> (gdb) set new-console 1
> (gdb) run <whatever>
>
> Then Info gets its own separate console, and you can use GDB
> conveniently from its original terminal. This works on Windows.
Great to know, I'll try this in future!