Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1682

Debugging .btm with >3 arguments fails on step.

$
0
0
Code:
C:\batch]type foo.btm
@ echo off
  do until (%1) == ()
    echo parm is %1
    shift
  enddo
  echo at end
Code:
[C:\batch]foo one two three four five
parm is one
parm is two
parm is three
parm is four
parm is five
at end
Inside the debugger:
  • If I specify some batch arguments, set no breakpoints, then run to breakpoint, it executes correctly.
  • Using the same arguments, if I step through the code, it does not process more than three input parms.

Viewing all articles
Browse latest Browse all 1682

Trending Articles