Skip to content

Commit

Permalink
Fix breakpoint into a nested function
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 10, 2024
1 parent c95a13a commit ecf3c64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trepan/processor/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ def resolve_location(proc, location) -> Optional[Location]:
offset = lineinfo[0].offsets[0]
mod_func_name = lineinfo[0].name
if mod_func.co_name != mod_func_name:
print("FIXME: resolve_location needs update to pick out function")
# Breakpoint is in a nested function/method.
# Get new code object
mod_func = code_info.get(mod_func_name, mod_func)
pass
else:
return INVALID_LOCATION
Expand Down

0 comments on commit ecf3c64

Please sign in to comment.