beeware / bugjar

A interactive graphical debugger for Python code.
BSD 3-Clause "New" or "Revised" License
249 stars 31 forks source link

Exception thrown when opening a python file. #3

Closed khoobks closed 11 years ago

khoobks commented 11 years ago

There seems to be a escape issue when bugjar attempts to load a file via the GUI.

ie10 - win7 orig

In the screenshot above, I am attempting to load a django project called "testproject" and an app called "testapp" using the command "bugjar manage.py". When the GUI loads, I am going File -> Open -> settings.py

Notice that the 't' in testproject is missing and is replaced by a tab which would happen if the ...\testproject\ is being interpreted as a tab character.

The problem seems to be on line 385 of view.py and can be avoided by doing the following.

# ... select the new filename
f = filename.replace("\\", "\\\\")
self.breakpoints.selection_set(f)
#self.breakpoints.selection_set(filename)

Note: I am not trying to imply that the above is a good solution. Simply that it shows the source of the issue.