Permalink
Browse files

moved breakpoint list code to use get_location

  • Loading branch information...
1 parent 2a54def commit bee0edf17c4da45ba07a69d6b8c52df5e49fee25 @devhawk committed Mar 23, 2009
Showing with 3 additions and 9 deletions.
  1. +3 −9 ipydbg.py
View
@@ -418,18 +418,12 @@ def _breakpoint_mgmt(self, keyinfo):
if k.Key == ConsoleKey.L:
print "\nList Breakpoints"
for bp in self.active_appdomain.Breakpoints:
- symmethod = bp.Function.GetSymbolMethod()
- real_sp = None
- for sp in get_sequence_points(symmethod):
- if sp.offset > bp.Offset:
- break
- real_sp = sp
-
- print "%s:%d" % (sp.doc.URL, sp.start_line)
+ sp = get_location(bp.Function, bp.Offset)
+ print " %s:%d" % (sp.doc.URL, sp.start_line)
elif k.Key == ConsoleKey.D:
print "\nDelete Breakpoint Not Implemented"
elif k.Key == ConsoleKey.A:
- print "\nAdd Breakpoint"
+ print "\nAdd Breakpoint Not Implemented"
elif k.Key == ConsoleKey.Q:
print "\nExiting BP Management"
break

0 comments on commit bee0edf

Please sign in to comment.