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

Add json tracer as debug option #536

Merged
merged 55 commits into from
Jan 22, 2024
Merged

Add json tracer as debug option #536

merged 55 commits into from
Jan 22, 2024

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Oct 6, 2023

This pr introduces a pythontutor based debugger

Generating the debug trace in python is handled by json-tracer
Visualizing these traces is handled by trace-component

The new class Debugger is responsible of rendering the trace and delegating all relevant events.

The code editor is updated to show a line indicator in the sidebar.
The input component adds layout based on if a line is already used in the current debug step.
The output component add an opacity to output which is not present yet for the current debug step.

There is also a hard limit of 10 000 execution steps added to help students who encounter infinite loops.

This pr also made some styling changes to make it easier to override styles for users of the library.
Peek 2023-12-22 15-17

  • update readme

@jorg-vr jorg-vr self-assigned this Oct 6, 2023
@jorg-vr jorg-vr marked this pull request as draft October 30, 2023 14:00
@jorg-vr jorg-vr marked this pull request as ready for review December 22, 2023 14:18
@jorg-vr jorg-vr requested review from bmesuere and chvp December 22, 2023 14:19
Copy link
Member

@chvp chvp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Only looked at the code, couldn't immediately find the functionality.)

@jorg-vr jorg-vr merged commit 2af49b8 into main Jan 22, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants