-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picked an invalid source context #71
Comments
you're once again finding the best edge cases! |
The next time, everything worked as intended. This seems likely a lot harder to reproduce... |
(I'll add the pdb hook, hoping to see this again) |
thanks! if not set(source_lines).issubset(fi.source_map.keys()):
debug_vals = [self.lines, lineno, source_lines, fi.head_lns, fi.source_map.keys(), fi]
info = ', '.join(str(p) for p in debug_vals)
raise Exception("Picked an invalid source context. Debug info: %r" % info) |
Ran into a "Picked an invalid source context".
I've only seen this once thus far. On python
3.12.0
with StackPrinter0.2.12
.The text was updated successfully, but these errors were encountered: