Debugger IDE - strange tab and parameter behaviour

Sep 14, 2011
1
0
This may be a "feature". However running a standard bat file that calls a second bat file.

1) starting the script with a parameter. I add the "-h" that I want to pass in the "Display/Modify Batch Parameter" tab. When the script starts this gets overwritten with the batch file name "0=myBat.bat" and I lose the -h?

I can't see any other way to start running a script with desired parameter.

2) When the code enters a second bat file, the code tab changes to that file, and I lose all of the breakpoints in the first file? To run it again I have to re-load the first file and set all of the break points again? is this the expectd behaviour

Many thanks

Using take command v12
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
This may be a "feature". However running a standard bat file that calls a second bat file.

1) starting the script with a parameter. I add the "-h" that I want to pass in the "Display/Modify Batch Parameter" tab. When the script starts this gets overwritten with the batch file name "0=myBat.bat" and I lose the -h?

I can't see any other way to start running a script with desired parameter.

First, did you save the new parameters before starting the batch file (i.e., by clicking on the batch parameters toolbar)? If not, the parameters will be reset to the original default values when you start the batch file.

Second, you should never overwrite the "0" parameter, as that is what specifies the batch file name. (TCC and CMD will get very disturbed if you tell them the batch name is "-h"!)

Third, you can also specify the batch parameters you want to use by entering them in the "Batch Parameters" edit control on the IDE toolbar.

2) When the code enters a second bat file, the code tab changes to that file, and I lose all of the breakpoints in the first file? To run it again I have to re-load the first file and set all of the break points again? is this the expectd behaviour

Are you calling ("call batch2") or chaining to the second batch file?

The breakpoints are saved when you call another batch file, and are restored when you return to the original batch file.

Breakpoints are also saved to a file (i.e., "filename.cmd.bp") and are restored when you reload the batch file in the debugger.
 
Similar threads
Thread starter Title Forum Replies Date
epement differences in IDE/debugger between v12 and v14 Support 1
Alan Strader Take Command IDE/Debugger has stopped working Support 5
S Debugger keeps breaking with no break point set. Support 1
D Layout debugger windows Support 2
R Batch Debugger Command Expansion Window Support 3
S Debugger menu absent Support 10
MikeBaas Using the debugger Support 2
R Take Command Debugger v22 ENDCOMMENT not bolded Support 6
K Batch debugger not stepping correctly Support 4
S Output from debugger Support 4
Joe Caverly Works in debugger, not from cmd line Support 1
S Problems with dir command in the debugger Support 5
S Debugger Bat file call history Support 9
T WAD Strange Unexpected "features" in the Debugger Support 2
BeechComer Debugger: how to set %1 variable? Support 3
D Chaining crashes the debugger Support 13
T Fixed V18 debugger crashed on save button Support 1
T Fixed V18 debugger crashed on stop button Support 2
Exolon V17 beta, debugger: STRG-S is inserting character instead of saving Support 12
MickeyF debugger keeps crashing Support 6
vefatica Debugger: popup _VARIABLE values Support 1
vefatica Another debugger observation Support 12
P Is there a way to examine arrays in the batch debugger? Support 1
vefatica Debugger now Unicode? Support 1
Kachupp IDE watch references Support 11
T Thanks for the assistance with IDE vs Bdebugger Support 3
vefatica IDE external command syntax color? Support 1
K_Meinhard Small problem in german IDE 26 Support 3
vefatica IDE - when breakpoint is on a blank line? Support 3
Peter Murschall IDE: After undocking the command expansion Window is offended Support 2
Peter Murschall IDE: Ctrl-W is a Harakiri Command ! Support 23
Kachupp ide/bdebugger Support 17
rps IDE/BDEBUGGER ? Support 1
vefatica IDE.EXE's command line? Support 19
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
vefatica IDE stuck on "Insert tabs as spaces" Support 0
Peter Murschall IDE/BDEBUUGER in TCC 22 didn't run Support 7
T Fixed Problem with use of Batch parameters in the IDE Support 1
T Fixed IDE locks up if edit window for running batch is closed Support 6
Peter Murschall IDE destroys Text on Ctrl-U/Ctrl-Shift-U Support 12
C BDEBUGGER/IDE crashing Support 1
vefatica Monospace font in IDE? Support 3
vefatica IDE crashes every time Support 6
R TCC IDE Tabs - inactive tabs hard to see Support 14
vefatica IDE crashing Support 11
vefatica Why doesn't "IDE %_ININAME" work? Support 4
vefatica IDE's dynamic help ... Support 0
vefatica Contuing IDE gripes Support 11
vefatica WAD IDE, output window to foreground Support 3

Similar threads