Skip to content

debugger: create package #142

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

Merged
merged 1 commit into from
Jun 23, 2025
Merged

debugger: create package #142

merged 1 commit into from
Jun 23, 2025

Conversation

timothyg-stripe
Copy link
Collaborator

Add a simple interactive Starlark debugger. This is a copy of a debugger that has been in use at Stripe. It can be used in any starlark-go application, not necessarily one that uses skycfg.

The debugger exposes a single breakpoint() function to ordinary Starlark code, which starts up an interactive REPL-style debugging session, in which users can examine the Starlark thread stack and manipulate values. An example integration is in debugger/example_test.go, with the transcript of a sample debugging session located in debugger/README.md.

Stepping through code is not supported due to restrictions in starlark-go. See google/starlark-go#304 for details.

@timothyg-stripe timothyg-stripe merged commit 16693e1 into trunk Jun 23, 2025
7 checks passed
@timothyg-stripe timothyg-stripe deleted the timothyg/debugger branch June 23, 2025 14:40
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

Successfully merging this pull request may close these issues.

2 participants