[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Added support for debugging emacs daemon
From: |
Eli Zaretskii |
Subject: |
Re: Added support for debugging emacs daemon |
Date: |
Tue, 12 Feb 2019 18:28:28 +0200 |
> From: Michael Welsh Duggan <address@hidden>
> Date: Tue, 12 Feb 2019 10:44:01 -0500
>
> I was recently in a position where I wanted to run "emacs --daemon"
> under gdb. After a few fumbles, I hit upon the following. I suggest
> either adding this or something like this to .gdbinit or mentioning it
> in DEBUG:
>
> # Follow forks until any possible daemonization is over
> set follow-fork-mode child
> tbreak init_signals
> commands
> set follow-fork-mode parent
> end
Wouldn't this get in the way when debugging Emacs which launches
subprocesses?
It'd be OK to put this in etc/DEBUG, of course. Patches welcome.
Thanks.