Fixed Problem with use of Batch parameters in the IDE

Jul 13, 2017
20
0
Day 3 of the evaluation - still debugging the debugger - and YAB !!!

I have found some problems with the IDE operation when trying to pass command line parameters to the batch file.

I can't find any doco on how to use the "Display/Modify Batch Parameters" so the following may all be a result of my failure to use it correctly.
By experimentation, it appears that this is a "free text" edit control that allows any entry regardless of correctness.
I am currently using it as 1 line per batch parameter based on the current behaviour of the IDE I have observed and will report in "First BUG" further down in this post.
Each line consists of a commandline parameter position number (for %n) and its intended value
e.g. 1=380
2="sn0209ar.dsk"
-------------------------------------------
The First "BUG":-
When the batch file is started, the IDE replaces the entered batch parameters with something out of it's memory of a previous commandline
See screen shot "IDE - batch parameters BEFORE pressing [Run].jpg"
IDE - batch parameters BEFORE pressing  [Run].jpg


and screen shot "IDE - batch parameters AFTER pressing [Run].jpg"
IDE - batch parameters AFTER pressing  [Run].jpg


here is the screen shot when stepped to line 8 "IDE - Modified and Watch lists AFTER running to line 8.jpg"

IDE - Modified and Watch lists AFTER running to line 8.jpg


So both the "skip" and "search" variables have had completely different and unusable values put into them

------------------------------------------------------------------------------
The Second "BUG":-
When the batch run is finished, the Batch Parameters list is emptied and all parameters have to be re-entered before the next run.

------------------------------------------------------------------------------
The Third "BUG":-
If you use the "Save" function on the Batch Parameters list, it saves the current content of the list as a unicode text file. Obviously this is not the bug, but may be the cause of it.
When you use the "Open" function to reload the list, the previously saved list is truncated
See screen shot "IDE - batch parameters after loading from previous save.jpg"
IDE - batch parameters after loading from previous save.jpg

At the moment, this doesn't matter because the First BUG noted above replaces the content of this list before the batch runs.

Errol
 
Last edited:

rconn

Administrator
Staff member
May 14, 2008
12,404
152
-------------------------------------------
The First "BUG":-
When the batch file is started, the IDE replaces the entered batch parameters with something out of it's memory of a previous commandline
See screen shot "IDE - batch parameters BEFORE pressing [Run].jpg"

The batch arguments are set either by:

1) if you use BDEBUGGER, it uses the remaining command line (i.e., "bdebugger batchname arg1 arg2 arg3")
2) If you start the IDE or BDEBUGGER without any arguments, you enter the batch arguments in the edit control on the toolbar. (You can also do this between debugging runs if you want to change the original arguments.)
3) (Not recommended) you can also modify the batch args in the Batch Parameters window, but they will be lost / overwritten when you stop debugging.

------------------------------------------------------------------------------
The Second "BUG":-
When the batch run is finished, the Batch Parameters list is emptied and all parameters have to be re-entered before the next run.

------------------------------------------------------------------------------

See above.

The Third "BUG":-
If you use the "Save" function on the Batch Parameters list, it saves the current content of the list as a unicode text file. Obviously this is not the bug, but may be the cause of it.
When you use the "Open" function to reload the list, the previously saved list is truncated
See screen shot "IDE - batch parameters after loading from previous save.jpg"

Confirmed (bug in the latest MSVC RTL). Fixed in 21.0.37.
 
Similar threads
Thread starter Title Forum Replies Date
S How to? Batch file problem Support 67
old coot Problem with INS key flag in the debugger status bar Support 3
Dick Johnson Weird Color Problem Support 10
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4
rps V20 In-process pipes problem Support 8
Alpengreis Again theme problem [v20.0.21]? Support 11

Similar threads