grub4dos
grub4dos copied to clipboard
Query: How to single-step from inside a batch file?
e.g.
!BAT
set A=1
set B=2
(start debug single-step here)
set C=3
Is it possible to start single-stepping from within a batch file or set a breakpoint inside a batch file?
current not supported
struct builtin builtin_debug = { "debug", debug_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_SCRIPT | BUILTIN_HELP_LIST, "debug [on | off | normal | status | INTEGER]" "\ndebug Batch [ARGS]", "Turn on/off or display/set the debug level or Single-step Debug for batch script" };
I am looking for a way to run debug at full speed until a certain line in a certain batch file is reached and then start single-stepping. When debugging large batch files which call multiple batch files in multiple loops, it is very slow to manually single-step all lines. Maybe you can think of a way I can do this? It would also be nice to enable single-step on certain conditions, e.g. debug test.g4b ... if %x%==1 debug 5 ;; # enable single step