On 7 September 2017 at 11:43, Barry Warsaw <ba...@python.org> wrote: > Environment variable > -------------------- > > Should we add an environment variable so that ``sys.breakpointhook()`` > can be > set outside of the Python invocation? E.g.:: > > $ export PYTHONBREAKPOINTHOOK=my.debugger:Debugger > > This would provide execution environments such as IDEs which run Python code > inside them, to set an internal breakpoint hook before any Python code > executes.
Related to this is the suggestion that we make the default sys.breakpointhook() a no-op, so that accidentally checking in calls to breakpoint() won' t hang CI systems. Then folks that wanted to use the functionality would set "PYTHONBREAKPOINTHOOK=pdb:set_trace" Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com