On 7 September 2017 at 11:43, Barry Warsaw <barry at 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 | ncoghlan at gmail.com | Brisbane, Australia
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4