Stream: helpdesk (published)

Topic: Printing variable with @continue (Ctrl+D) in Infiltrator


view this post on Zulip Alec (Aug 05 2025 at 02:23):

I am trying to troubleshoot some complex/deep code and would like to be able to keep hitting Ctrl+D (@continue) and have a variable (e.g. call it p print for each time I hit Ctrl+D. Is there anyway to do this or do I have to enter p into the REPL each time?

view this post on Zulip Toby Driscoll (Sep 02 2025 at 13:10):

Not an ideal solution, but in vs code, you could use the Keyboard Macro Beta extension to record and play back a sequence of keystrokes.

view this post on Zulip cschen (Sep 02 2025 at 14:24):

Might be a bit of a hack, but did you try printing the variable and then returning true inside a @cond point?

view this post on Zulip cschen (Sep 02 2025 at 14:26):

It takes an expression which I believe is evaluated for that particular iteration, to decide if triggering an infiltration or not. So you could just ask it to print a value and then tell it to infiltrate. I.e. @cond( @show p; true)


Last updated: Sep 07 2025 at 04:39 UTC