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

Debugging: Ability to set a breakpoint and trace? #384

Open
gunnsth opened this issue Jun 22, 2022 · 1 comment
Open

Debugging: Ability to set a breakpoint and trace? #384

gunnsth opened this issue Jun 22, 2022 · 1 comment

Comments

@gunnsth
Copy link

gunnsth commented Jun 22, 2022

This is probably a feature request, but it would be nice if it was possible to do something like

tdb := import("tdb")
tdb.set_trace()

(similar to pdb in python), which would give a prompt, similar to the REPL prompt in the tengo CLI command and use to print state of variables and such.

@beoran
Copy link

beoran commented Jul 21, 2022

There already is the OpSuspend instruction to suspend the run of the VM, but there's yet no way to continue after suspending. Perhaps that could be added to enable debugging?

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

2 participants