This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE crashes when debugging and saving
Type: Stage:
Components: IDLE Versions: Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE closes with save while breakpoint open
View: 9803
Assigned To: Nosy List: jimbo1qaz, ned.deily, roger.serwy
Priority: normal Keywords:

Created on 2012-09-25 04:15 by jimbo1qaz, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg171214 - (view) Author: jimbo1qaz (jimbo1qaz) Date: 2012-09-25 04:15
Have the debugger open, stopped on a breakpoint, and save the open file. The whole thing will bomb after the save finishes. Changes are not lost, but I have to reopen IDLE and lose history and breakpoints.
msg171215 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2012-09-25 04:29
What operating system are you using?  Which python 3.2 are you using (i.e. a particular installer downloaded from python.org, built from source, etc)?  If known, which version of Tcl/Tk are you using?
msg171217 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2012-09-25 04:48
With 3.2.3 (on OS X), if I open a new edit window, enter a few files, save the file, set a breakpoint on a line, then save the file again (with or without having debug on), the following exception occurs but IDLE keeps running:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/tkinter/__init__.py", line 1399, in __call__
    return self.func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/MultiCall.py", line 166, in handler
    r = l[i](event)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/IOBinding.py", line 336, in save
    self.editwin.store_file_breaks()
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/PyShell.py", line 214, in store_file_breaks
    self.update_breakpoints()
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/PyShell.py", line 244, in update_breakpoints
    linenumber_list = self.ranges_to_linenumbers(ranges)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/PyShell.py", line 250, in ranges_to_linenumbers
    lineno = int(float(ranges[index]))
TypeError: float() argument must be a string or a number

In a quick attempt, I was not able to produce the same exception with 3.3.0rc3.
msg171218 - (view) Author: Roger Serwy (roger.serwy) * (Python committer) Date: 2012-09-25 05:05
This was fixed in issue9803, but after the 3.2.3 release. I'm closing this issue as a duplicate.
History
Date User Action Args
2022-04-11 14:57:36adminsetgithub: 60237
2012-09-25 05:05:34roger.serwysetstatus: open -> closed
superseder: IDLE closes with save while breakpoint open
resolution: duplicate
messages: + msg171218
2012-09-25 04:48:54ned.deilysetnosy: + roger.serwy
messages: + msg171217
2012-09-25 04:29:08ned.deilysetnosy: + ned.deily
messages: + msg171215
2012-09-25 04:15:13jimbo1qazcreate