On Thu, Apr 17, 2008 at 5:35 PM, Miguel de Icaza <[EMAIL PROTECTED]> wrote:
> Hey,
>
>  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!

In the long term, sure.  :-)

>  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@lists.ximian.com, not the OSX
>  specific list.

How about doing it when running "mono --debug foo.exe"? That would
make sense, especially given that without --debug you wouldn't see the
line numbers anyway.

-Chuck
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to