junzis / pyModeS

Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
529 stars 151 forks source link

Add debugging option #43

Closed xander-hirsch closed 5 years ago

xander-hirsch commented 5 years ago

The TCP BaseClient class is modified to recognize the environment variable PYMODES_DEBUG. When the variable is set to 'true', the stream will halt execution and provide a traceback rather than restarting. This is for debugging purposes and does not alter the main functionality of the program.

This modification helped me identify erroneous messages from a dump1090 beast feed. Without the error message and break, all I had been provided was invalid literal for int() with base 2: ''. More information on that problem is contained in issue #42.