grub4dos icon indicating copy to clipboard operation
grub4dos copied to clipboard

Query: How to single-step from inside a batch file?

Open steve6375 opened this issue 8 years ago • 2 comments

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?

steve6375 avatar Mar 28 '17 19:03 steve6375

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" };

chenall avatar Jul 26 '19 09:07 chenall

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

steve6375 avatar Jul 26 '19 09:07 steve6375