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

Time Travelling Python Debugging #1707

Closed
stephen-ritter opened this issue Nov 14, 2024 · 1 comment
Closed

Time Travelling Python Debugging #1707

stephen-ritter opened this issue Nov 14, 2024 · 1 comment
Labels
question Questions about OpenC3

Comments

@stephen-ritter
Copy link

stephen-ritter commented Nov 14, 2024

There is a need to be able to rewind a script if it gets stuck or to jump to a specific line. It appears there isn't great support for this in either Python or Ruby. In Python it appears some people have tried to tackle this issue. One of the latest ones I have seen is called pytrace, and it also has integration with a web frontend. Overall I was wondering if something like this debugger could be implemented in the Script Runner.
https://pytrace.com/
https://github.com/gleb-sevruk/pycrunch-trace

@jmthomas jmthomas added the question Questions about OpenC3 label Nov 14, 2024
@jmthomas
Copy link
Member

We currently have an open ticket for executing selected lines while paused: #1638. It needs some backend work which is why it's not closed.

It looks like pytrace and pycrunch-trace both have their own frontends for viewing trace files. It almost looks more like a profiler like ruby-prof. Whatever we do will be implemented within Script Runner itself.

Right now the debugger works pretty good for inspecting and setting variables but you're limited to executing step by step forward with no other traversal options.

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

No branches or pull requests

2 participants