Changes between Version 1 and Version 2 of Debugging
- Timestamp:
- 01/07/13 08:57:10 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Debugging
v1 v2 56 56 57 57 Unfortunately, because of the asynchronous nature of X11 calls, the error may generate this crash after the event that caused it. 58 ''need more info on debugging this case..'' 58 In this case, we may want to force all X11 calls to be synchronized (which will hurt performance and may even hide the bugs - beware of heisenbugs!), trace all X11 calls, etc. 59 [/trac/attachment/wiki/Debugging/error.py this modified error.py] allows you to do just that (see the constants at the top). 59 60 60 61 == Venerable Print Statements == 61 62 When all else fails, or just when appropriate, sprinkling some {{{print}}} statements around the critical sections of code is often the best way to get a clearer picture of what is really going on.. 62