[dos] into - for loop - the bp is not hit

Oct 27, 2019
3
0
hi,

I using a long batch file, all working fine, when I toggle a bp in a for loop never get a hit
Code:
FOR /F "usebackq delims==" %%f in (`dir *.doc /s /b`) do (
rem your code here
)
any tip?
 
Oct 27, 2019
3
0
2h ago I downloaded, writes
-CMDDebug v25.00.23x64
or the other application tested Take Command v25.00.23x64
 

rconn

Administrator
Staff member
May 14, 2008
11,894
133
A FOR statement is considered a single command line by TCC (and CMD). You cannot set a breakpoint on an individual command inside the FOR loop; however what you can do is set a breakpoint on the FOR command, and then "step into" each command in the group.