Sure:
Main Topics
Browse All TopicsI am using debug.exe for assembly language, and the screen buffer resets to 25 lines when I run debug.exe in a command window. I am therefore unable to view lines that run off the window.
Running
C:\>debug >c:\capture.txt
almost works, as all input and output is sent to the capture.txt file, but not displayed in the command window.
Does anyone know how I can see and capture at the same time?
*Copy and paste, 25 lines at a time, is extremely time consuming.
-jc37
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Output to a file works perfectly. The problem is the output only goes to a file, and not to the screen.
For example, by typing the following into cmd.exe
C:\>debug >c:\capture.txt
R
Q
capture.txt contains the following:
-R
AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0B0B ES=0B0B SS=0B0B CS=0B0B IP=0100 NV UP EI PL NZ NA PO NC
0B0B:0100 7518 JNZ 011A
-Q
This is exactly correct.
What I am trying to accomplish is to see the output in capture.txt in cmd.exe also.
I think I need a program that reads the command window buffer and writes it to a file.
-jc37
Pipe the debug output through tee.exe:
debug | tee "capture.txt"
GNU utilities for Win32
http://unxutils.sourceforg
Business Accounts
Answer for Membership
by: MASQUERAIDPosted on 2009-09-20 at 12:52:12ID: 25378685
What happens if you right-click on the title bar of the window? Do you get an Edit option? If so try Select All then Copy.