[Mono-list] [Mono-osx] Stack trace on Control+C

Miguel de Icaza miguel at novell.com
Thu Apr 17 20:35:43 EDT 2008


On Wed, 2008-04-09 at 01:18 -0700, Chuck Esterbrook wrote:
> When I hit Control+C in a Python console program, I get a stack trace
> which is quite useful. If for some reason I don't want that behavior,
> I can catch KeyboardInterrupt.
> I'd like to get a stack trace for Mono console programs when I hit
> Control+C. Instead it exits with no message at all. I tried compiling
> and running with debug flags, but that didn't change the behavior.
> Is this possible?

With open source, everything is possible!

The only downside is that this might require some work (some code, plus
documentation updates).

Currently you can get such stack traces by sending the QUIT signal to a
process (kill -QUIT PID), so the code exists to do that, but its not
hooked up to Control-C.    

Am not sure that it is a good idea to do by default, but if anything,
that should be discussed on mono-list at lists.ximian.com, not the OSX
specific list.


More information about the Mono-list mailing list