Forums

I messed up my app... how do I debug it?

I made some changes to my pyramid app and of course everything went south. My problem is how do I debug it. I know to check my error logs when I see the "Unhandled Exception" message on my webpage.

The error log is as follows:

2014-01-25 02:20:26,199 :/usr/lib/python2.7/threading.py:1158: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
2014-01-25 02:20:26,202 :  return _active[_get_ident()]
2014-01-25 02:20:26,181 :Error running WSGI application
None

The change I made involved updating a view. I started with a skeleton view and it worked perfectly. When I added some code to it, I get "Unhandled Exeption" and the error log is as above. Where do I start?

Don't you have the previous version? If yes, you can work incrementally from there.

It looks like you've done something that (directly or indirectly) requires threads and we don't support threading in webapps. Have a look through the new code you added to see if you can identify it.