Skip to content
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

Run magic on module fails with debug flag (%run -d -m my_module) #14372

Open
carschandler opened this issue Mar 21, 2024 · 0 comments
Open

Run magic on module fails with debug flag (%run -d -m my_module) #14372

carschandler opened this issue Mar 21, 2024 · 0 comments

Comments

@carschandler
Copy link

Decided to port some code to run as a module with a __main__.py file, but now when I try to debug it using %run -d -m my_module, I get the following error:

End of file
End of file
End of file
End of file
End of file
End of file
End of file
End of file
End of file
End of file
End of file
UsageError:
I failed to find a valid line to set a breakpoint
after trying up to line: 11.
Please set a valid breakpoint manually with the -b option.

I changed my __main__.py to just be a single print statement and still got the error. I set the breakpoint manually using %run -d -b my_module/__main__.py:1 -m my_module and then the code ran but didn't ever break. In general it just seems like -d and -m don't play well together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant