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

Debugger doesn't trace into doctests #580

Open
pdawyndt opened this issue Dec 22, 2023 · 1 comment
Open

Debugger doesn't trace into doctests #580

pdawyndt opened this issue Dec 22, 2023 · 1 comment

Comments

@pdawyndt
Copy link
Contributor

pdawyndt commented Dec 22, 2023

The debugger doesn't run doctests, probably because it's instructed not to trace into modules (like testmod). Would however be highly relevant if student code were still traced while running the doctests. Of course we do not want to trace running the functionality of the `testmod' module itself.

@pdawyndt
Copy link
Contributor Author

pdawyndt commented Dec 22, 2023

FYI: Here's a nice example of a solution where the original Python Tutor heavily suffers while rendering some frames with many objects/references, whereas the new implementation runs much more smoothly. As an additional advantage: the bug in this code can't be found in the Python Tutor due to the 1000-frame limit, where the new implementation is helpful because that limit is removed.

This sample code also has a doctest that could not be debugged as such: I had to inline the doctest as part of the code itself before I could start debugging.

@pdawyndt pdawyndt changed the title Debugger doesn't run doctests Debugger doesn't trace into doctests Dec 23, 2023
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