Debugging Session Hang

Jun 11, 2018
I am debugging a series of batch files and I am a couple of levels deep in CALLs and I switch away to my editor (Notepad++) while on a break point and when I come back the stepping buttons are all greyed out. I can press the pause or stop button so if I press pause the step buttons become enable but pressing one does nothing. I have to shut down and restart the debugger.

BTW when this happens stopping the debug session and restarting it gives unpredictable results so I have to shut down the debugger.
Jun 11, 2018
Sorry I responded on the wrong thread. The problem was the delete command was using /q which is suppose to suppress the console question. If I turn on cmd syntax the problem goes away. It was hard to spot because I keep losing console output. The batch files will stop displaying on the screen so I did not see what is going on. I have added echo on but it does not help. I even ;loose output coming from the programs.
Also is there a way to have the debugger default to cmd syntax because It is a pain to keep setting it and sometimes I forget.


Staff member
May 14, 2008
Are you running Take Command or CMDebug? Take Command defaults to TCC syntax; CMDebug defaults to CMD syntax.

If you're losing output in the console window, that's either a Windows issue or something with one of your apps - the debugger cannot affect console output.
Jun 11, 2018
The console io problem is the batch file is doing a call with redirected output:

call foo.bat 1>io.txt 2>err.txt

Is there a way to redirect output to a file and still have it come out on the console? (I realize this is not a CMDebug quextion)
Jun 11, 2018
Another CMDebug/IDE question:

When I have a bat file call a bat file the calling bat file closes in the debugger when it calls into the call bat filke and then comes back with the called bat file returns. Is there a way tohave the calling bat file stay open?
Similar threads
Thread starter Title Forum Replies Date
old coot Debugging .btm with >3 arguments fails on step. Support 3
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
T Is there a way to maintain the position in the environment list, while debugging? Support 10
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
Joe Caverly Debugging a LIBRARY function Support 10
I Change value of a variable while debugging Support 3
C How to? run a batch file in administrator mode while debugging in take command software Support 1
Mordachai Help! How to set parameters for script I'm debugging?! Support 6
Vasilich How to? debugging files that use CALL command - possible?? Support 3
Stefano Piccardi forum software writes debugging output Support 5
S V10 debugging problems Support 9
P Run as Admin tab in non-elevated Take Command session? Support 9
rps Unalias * hangs TCC session Support 2
vefatica TCC window caption in elevated session? Support 5
S TCC 14.0 disappears from RDP session Support 3
M How to? Run the control panel from a TCC session... Support 2
Mordachai How to capture all console output from a TCMD session? Support 4
A How to? Frozen session tab with "ERROR: The file is either empty or does not contain the valid choices." Support 19
vefatica BTM file hoses logon session Support 12
vefatica Elevated session and UpdateTitle? Support 3
M How to? Save the session log from a batch file? Support 5
A Redirecting TCC output to a different RDP Session Support 6
I Hang/Crash When Requesting Help Support 4
I Take Command 18 x64 Install Hang Support 2

Similar threads