Add universal -trace flag to print every line of V source right before it executes #11650
elimisteve
started this conversation in
Ideas
Replies: 2 comments
-
Unless we get a V interpreter, I think that will be hard to do in a general way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's fine if we first need to compile with -debug to build a binary that lets us -trace, which surely makes this much more feasible, yes @spytheman ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
...just like
bash -x myprogram.sh
! Which is super useful; much more pleasant than manually addingprint
statements all over the place, or having to use a debugger.I see verbose_trace in
cmd/tools/modules/scripting/scripting.v
, so perhaps something similar could be used to implement this?Beta Was this translation helpful? Give feedback.
All reactions