Skip to content

Conversation

@andrewmbenton
Copy link
Collaborator

No description provided.

}

if debug.Debug.DumpVetEnv {
fmt.Printf("vars for rule '%s' evaluating against query '%s':\n%v\n", name, query.Name, evalMap)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we dump this as JSON?

@andrewmbenton andrewmbenton merged commit 10e51f8 into main Jul 25, 2023
@andrewmbenton andrewmbenton deleted the andrew/debug-dump-vet-env branch July 25, 2023 18:42
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
…qlc-dev#2521)

* feat(debug): add debug flag and docs for dumping vet rule variables

* feat(debug): dump vet rule env as JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants