colstrom / tinypy

A very small Python
Other
1 stars 0 forks source link

tinypy exits on errors without debug info #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Embed tinypy in your application.
2. Make your tinypy code raise an uncaught exception.
3. Try to debug the problem.

What is the expected output? What do you see instead?

I would like a full traceback in gdb to the line of code which caused the
problem. Instead I get nothing at all.

The attached patch fixes it by replacing tinypy's calls to exit() with abort().

Original issue reported on code.google.com by allef...@gmail.com on 20 Jul 2008 at 3:39

Attachments:

GoogleCodeExporter commented 8 years ago
Since nobody said otherwise.. I applied the first chunk of the patch (the 
second was
not quite right). Should not cause any adverse effects, and makes debugging 
easier.

Original comment by allef...@gmail.com on 31 Jul 2008 at 5:24