kivy / pyjnius

Access Java classes from Python
https://pyjnius.readthedocs.org
MIT License
1.4k stars 255 forks source link

JavaException trace #696

Open cmacdonald opened 1 year ago

cmacdonald commented 1 year ago

In #203 and #623 we discussed printing the Java stacktrace by default, in order to assist developers with problems happenning within Java. This PR does this by overridding __str__(), without trying to mock the Python traceback (which would be more elegant, but beyond my knowhow).

Screenshot of how it looks like in Colab:

image

Screenshot of how it looks like from Python cmdline:

image
cmacdonald commented 1 year ago

This is ready for review @misl6

cmacdonald commented 11 months ago

Gentle poke?

cmacdonald commented 3 months ago

I do think this would be a good addition to jnius. Any news?