Permalink
Browse files

fixed small bug in create_breakpoint

  • Loading branch information...
1 parent 0de57ed commit b40b91e7b3ca87f018593262e212e905e7dfabd8 @devhawk committed Mar 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 ipydbg.py
View
@@ -68,7 +68,7 @@ def create_breakpoint(module, filename, linenum):
for doc in reader.GetDocuments():
if str.Compare(filename, Path.GetFileName(doc.URL), True) == 0:
linenum = doc.FindClosestLine(linenum)
- method = module.SymbolReader.GetMethodFromDocumentPosition(doc, linenum, 0)
+ method = reader.GetMethodFromDocumentPosition(doc, linenum, 0)
function = module.GetFunctionFromToken(method.Token.GetToken())
for sp in get_sequence_points(method):

0 comments on commit b40b91e

Please sign in to comment.