Output from debugger

Jun 11, 2018
26
0
When I run a bat file from a dos window the output shows the prompt for example:

c:\foo > echo on

When run in the debugger the prompt is omitted.

This is undesirable for me because I compare output from a debug session with a non debug run using beyond compare and it makes every line apear different.

The other issue is I use the cmd prompt while stepping through the debugger to know what the current directory is.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
Hmm - that's the first time in 29 years of writing command interpreters that anybody has considered CMD's behavior of feeding the batch file lines to the command prompt a "feature"!

There's no way to do that in TCC or CMDebug, and changing their behavior to match CMD would seriously cripple them, slow batch file execution dramatically, and introduce a slew of incompatibilities.

You can post this request on the Suggestions Forum; if you get enough support from other users I'll consider it for a future release.
 
May 20, 2009
293
5
57
ITALY
...
This is undesirable for me because I compare output from a debug session with a non debug run using beyond compare and it makes every line apear different.
...
I believe that with beyond compare You can specify that a part of a line is not important, and ignore those differences.

Regards

Rodolfo Giovanninetti
 
Aug 23, 2010
647
9
The prompt is useful to track script's current working directory.
If you want to make both outputs equivalent, you can unset PROMPT in the script.
 

rps

Jul 6, 2008
436
6
When I run a bat file from a dos window the output shows the prompt for example:

c:\foo > echo on

When run in the debugger the prompt is omitted.

This is undesirable for me because I compare output from a debug session with a non debug run using beyond compare and it makes every line appear different.

The other issue is I use the cmd prompt while stepping through the debugger to know what the current directory is.
I haven't needed to use CMD in many years, so I don't understand how comparing batch debugger outputs would actual be useful. Hopefully the other two responses are helping with that.

As for tracking the CWD. Can't you just add %_cwd to the watch list, which should track the current directory as your batch file changes directories? Untested.
 
Similar threads
Thread starter Title Forum Replies Date
A How to? TEE - duplicate output to STDERR Support 3
FreezerBurnt ANSI Prompt messes up list output. Support 39
Ó Recent git output not shown on TCC Support 1
Peter Murschall TEE cannot handle Unicode output Support 2
C TEE command appending null characters to output Support 6
Jesse Heines webform output different in ver. 26 than ver. 25 Support 2
vefatica Piping the output of a DO loop. Support 4
vefatica TCMD output invisible on Win10 Support 22
B How can TCC make an output as a part of command string Support 2
Enigma Take Command 23 duplicates output Support 0
Joe Caverly Works with CMD.EXE, no output with TCC.EXE Support 7
M TCC incorrect dir output since Windows 1803 Support 6
A WAD Output redirection to IF block fails with "unbalanced brackets" Support 7
P Scrollable colored output Support 3
scottb How to? ipconfig output in current window Support 4
David McClelland TEE command puts it's output file in c:\ Support 4
vefatica How to? TPIPE ... see output right away? Support 4
T Fixed Unnecessary debug output Support 3
JohnQSmith Weird DIR output (missing lines) Support 1
J WAD Output redirection in tcexit looses data Support 31
vefatica Console output slower that before Support 8
Mordachai How to capture all console output from a TCMD session? Support 4
C Output continues after Ctrl-Break Support 8
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I perl output is not visible Support 4
I v16 - cls corrupts output stream Support 7
D Fixed Minor problem: output not alligned in the tree command Support 1
vefatica WAD IDE, output window to foreground Support 3
R WAD Strange output from "memory" command Support 1
A How to? Set up a log file for all command output Support 3
A How to? Use TEE with .NET output Support 6
T How to? Logging Output from External Programs Support 4
Frank output of @ipaddress/@ipname Support 1
dcantor Unidentifiable output Support 16
Stefano Piccardi forum software writes debugging output Support 5
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
H TPIPE: /FILTER and /OUTPUT unexpected incompatibility Support 6
Stefano Piccardi issue: redirecting GOSUB output Support 11
A How to? Pass output from ffind to another command in a BTM file Support 5
J Can you redirect output to printer device with echo? Support 1
A How to? How to enable UTF-8 output in tcmd.ini Support 9
W Ascii character output Support 12
S SELECT DEL (*D.DLL) - output curious Support 8
T eval[] crashes with negative binary output Support 1
E Redirect output from "start"-ed console Support 5
E Scrolling output to single, non-scrolling line Support 13
A Redirecting TCC output to a different RDP Session Support 6
D Start program without waiting and redirect output Support 6
vefatica ZIP's informative output Support 1
Phileosophos Unzip doesn't extract to specified output folder Support 5

Similar threads