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

Calling q::debug with a single argument should work #1567

Open
bugarela opened this issue Dec 23, 2024 · 0 comments
Open

Calling q::debug with a single argument should work #1567

bugarela opened this issue Dec 23, 2024 · 0 comments
Labels
good first issue A simple issue to start with UX impacts or improves user experience

Comments

@bugarela
Copy link
Collaborator

Currently, if I want to add debug statements to an expression like:

foo(bar(1 + 2))

I need to do something like:

q::debug("foo", foo(q::debug("bar", bar(q::debug("plus", 1 + 2))))))

I'd like to also be able to write:

q::debug(foo(q::debug(bar(q::debug(1 + 2))))))

And have Quint print the expressions:

> foo(bar(1 + 2)): 45
> bar(1 + 2): 10
> 1 + 2: 3

Moreover (not this issue), we can also consider having something like:

q::deepDebug(foo(bar(1 + 2)))
@bugarela bugarela added UX impacts or improves user experience good first issue A simple issue to start with labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A simple issue to start with UX impacts or improves user experience
Projects
None yet
Development

No branches or pull requests

1 participant