-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Dev: Debugging Spyder
Rafael Laverde edited this page Mar 21, 2017
·
1 revision
SPYDER_DEBUG
environment variable supports 3 levels of debug mode:
-
SPYDER_DEBUG=0
orFalse
: debug mode is off -
SPYDER_DEBUG=1
orTrue
: debug level 1 is on (internal console is disconnected) -
SPYDER_DEBUG=2
: debug level 2 is on (+ logging coms with external Python processes) -
SPYDER_DEBUG=3
: debug level 3 is on (+ enabling -v option in external Python processes and debugging editor)
Example:
export SPYDER_DEBUG=3
Debug mode can be also activated using the bootstrap script:
./bootstrap.py --debug
from spyder.config.base import debug_print
debug_print("This will only printed in debug mode")
Connect with Spyder through our social media channels and stay up to date with current developments!