Report question

Question: How do I check if the python debug option is set from within a script