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

Design a mechanism for easier backtrace usage in snforge #2867

Open
cptartur opened this issue Jan 22, 2025 · 0 comments
Open

Design a mechanism for easier backtrace usage in snforge #2867

cptartur opened this issue Jan 22, 2025 · 0 comments
Labels
design-doc feature New feature request/description new snforge

Comments

@cptartur
Copy link
Member

Current State

Currently, to use backtrace,

unstable-add-statements-code-locations-debug-info = true
unstable-add-statements-functions-debug-info = true

lines must be added to Scarb.toml file. Adding these lines slows down compilation so it is not desired to have them defined in Scarb.toml at all times.

Objective

Design a mechanism for easier backtrace usage in snforge

Additional Context

There are many ideas on how this could be implemented: Leverage scarb profiles, after #1619 is implemented, by for example creating different profiles when creating a forge profile or even during runtime. Other possible solution would be to allow configuring these flags in scarb as an cli option, env var or similar and settings them through forge accordingly.

@cptartur cptartur added design-doc feature New feature request/description snforge labels Jan 22, 2025
@cptartur cptartur moved this to New in Starknet foundry Jan 22, 2025
@github-actions github-actions bot added the new label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-doc feature New feature request/description new snforge
Projects
Status: New
Development

No branches or pull requests

1 participant