[Python-Dev] PEP 553: Built-in debug()
barry at python.org
Thu Sep 7 17:12:28 EDT 2017
On Sep 7, 2017, at 14:04, Fred Drake <fred at fdrake.net> wrote:
> On Thu, Sep 7, 2017 at 4:52 PM, Terry Reedy <tjreedy at udel.edu> wrote:
>> Environmental variables tend to be a pain on Windows and nigh unusable by
>> beginners. Leaving that aside, I see these problems with trying to use one
>> for IDLE's *current* debugger.
>> pdb is universal, in the sense of working with any python run with actual or
>> simulated stdin and stdout. IDLE's idb is specific to working with IDLE. So
>> one could not set an EV to 'idlelib.idb.start' and leave it while switching
>> between IDLE and console.
> Would it work for IDLE to set the environment variable for the child process?
That’s exactly how I envision the environment variable would be used. If the process being debugged is run in an environment set up by the IDE, this would be the way for the IDE to communicate to the subprocess under debug, how it should behave in order to communicate properly with the debugger.
> The user certainly should not need to be involved in that.
> That doesn't address the issue of setting up the communications
> channel before breakpoint() is called, but allows the breakpointhook
> that gets used to work with whatever has been arranged.
Right again! I think setting up the communication channel is outside the scope of this PEP.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 273 bytes
Desc: Message signed with OpenPGP
More information about the Python-Dev