classification
Title: no way to run program in debugger from edit window
Type: enhancement Stage:
Components: IDLE Versions: Python 3.6, Python 3.5, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: kbk, markroseman, roger.serwy, terry.reedy
Priority: normal Keywords:

Created on 2015-08-07 04:44 by markroseman, last changed 2015-08-07 19:39 by terry.reedy.

Messages (2)
msg248175 - (view) Author: Mark Roseman (markroseman) * Date: 2015-08-07 04:44
If I have just an edit window open with my program, there's no way to run the program with the debugger visible. Should be a way to do so without going through the extra steps of opening up a shell window first
msg248218 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2015-08-07 19:39
Agreed.  I believe Al's menu revision suggested moving Debugger to Run. Debugger has to hook into Shell because it has to see packets moving between Shell and the execution process. Opening the debugger window currently requires that Shell already be open. Running a file opens Shell.  So we need to rewrite Debugger to delay hooking into Shell unless Shell is present .. or until it is activated (by running a file).  I believe this could be done by having a .connect_to_shell method that can be called either from .__init__ or the activate method.

There are several worse problems with Debugger.  I think they need some consideration together, lest a patch for one issue interfere with a patch for another.
History
Date User Action Args
2015-08-07 19:39:37terry.reedysetmessages: + msg248218
2015-08-07 04:44:11markrosemancreate