• Debugging 16 bit dos prog

    From Nelgin@VERT/EOTLBBS to All on Friday, July 21, 2023 05:17:00
    Hi all,

    I've been looking for a utility that will let me step through a dos program and look at the instructions while also being able to see what is displayed on the screen. I've not had much luck in finding anything that'll do the job and open to suggestions if anyone knows of something that'll do the job.

    Thanks,
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Bencollver@VERT/EOTLBBS to Nelgin on Friday, July 21, 2023 08:54:00
    Re: Debugging 16 bit dos programs
    By: Nelgin to All on Fri Jul 21 2023 05:17:38

    I've been looking for a utility that will let me step through a dos
    program and look at the instructions while also being able to see what
    is displayed on the screen. I've not had much luck in finding anything that'll do the job and open to suggestions if anyone knows of something that'll do the job.

    Just brainstorming:

    1) Use a serial port connected to a terminal emulator

    DOS console:
    ctty com1

    Terminal emulator:
    debug.com prog.exe

    2) Dosbox debugger

    https://www.vogons.org/viewtopic.php?t=3944

    3) Bochs debugger

    https://wiki.osdev.org/Bochs#Bochs_debugging_facilities

    I have also seen utilities that support multi-headed PC configurations, commonly a combination of CGA and Hercules adapters. Unfortunately, i
    do not remember which debugger supports that.
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Digital Man@VERT to Nelgin on Friday, July 21, 2023 12:27:00
    Re: Debugging 16 bit dos programs
    By: Nelgin to All on Fri Jul 21 2023 05:17 am

    Hi all,

    I've been looking for a utility that will let me step through a dos program and look at the instructions while also being able to see what is displayed on the screen. I've not had much luck in finding anything that'll do the job and open to suggestions if anyone knows of something that'll do the job.

    debug.exe is included with MS-DOS, isn't it?
    --
    digital man (rob)

    Rush quote #64:
    He's cleaning up his systems to keep his nature pure .. New World Man
    Norco, CA WX: 86.1øF, 50.0% humidity, 10 mph SSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Nelgin on Friday, July 21, 2023 13:16:00
    Re: Debugging 16 bit dos programs
    By: Nelgin to All on Fri Jul 21 2023 05:17 am

    I've been looking for a utility that will let me step through a dos program and look at the instructions while also being able to see what is displayed on the screen. I've not had much luck in finding anything that'll do the job and open to suggestions if anyone knows of something that'll do the job.

    If you do that, you'll be seeing assembly code, and it will be without any meaningful variable names, etc.. IMO it tends to be more challenging to debug that than with higher-level code.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Dr. What@VERT/THEGATEB to Nightfox on Saturday, July 22, 2023 08:21:00
    Nightfox wrote to Nelgin <=-

    If you do that, you'll be seeing assembly code, and it will be without
    any meaningful variable names, etc.. IMO it tends to be more
    challenging to debug that than with higher-level code.

    Unless the program you are debugging was compiled in debug mode, there won't be any meaningful variables names anyway.


    ... Rudolph changed his nose to 500 watts. Blew a fuse.
    --- MultiMail/Linux v0.52
    þ Synchronet þ ** The Gate BBS - Shelby, NC - thegateb.synchro.net **
  • From Nightfox@VERT/DIGDIST to Dr. What on Saturday, July 22, 2023 08:11:00
    Re: Debugging 16 bit dos prog
    By: Dr. What to Nightfox on Sat Jul 22 2023 08:21 am

    If you do that, you'll be seeing assembly code, and it will be
    without any meaningful variable names, etc.. IMO it tends to be
    more challenging to debug that than with higher-level code.

    Unless the program you are debugging was compiled in debug mode, there won't be any meaningful variables names anyway.

    Yeah, but who releases a program built in debug mode? Normally, a debug build would only be used by developers while developing the program. When releasing it, a release build makes the most sense. A release build runs faster; also, many software companies wouldn't want people to easily reverse-engineer their binaries.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Dr. What@VERT/THEGATEB to Nightfox on Sunday, July 23, 2023 08:11:00
    Nightfox wrote to Dr. What <=-

    Unless the program you are debugging was compiled in debug mode, there won't be any meaningful variables names anyway.

    Yeah, but who releases a program built in debug mode?

    Nobody, which was my point.

    If you want to step through someone else's software in a debugger, it will be in assembly language.


    ... Fools and their money become popular quickly.
    --- MultiMail/Linux v0.52
    þ Synchronet þ ** The Gate BBS - Shelby, NC - thegateb.synchro.net **
  • From Nelgin@VERT/EOTLBBS to Digital Man on Wednesday, August 09, 2023 23:33:00
    Re: Debugging 16 bit dos programs
    By: Digital Man to Nelgin on Fri Jul 21 2023 12:27:46

    I've been looking for a utility that will let me step through a dos program and look at the instructions while also being able to see what is displayed on the screen. I've not had much luck in finding anything that'll do the job and open to suggestions if anyone knows of something that'll do the job.

    debug.exe is included with MS-DOS, isn't it?

    I don't think that also shows you the program running in real time along with the debug lines.
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Digital Man@VERT to Nelgin on Wednesday, August 09, 2023 22:36:00
    Re: Debugging 16 bit dos programs
    By: Nelgin to Digital Man on Wed Aug 09 2023 11:33 pm

    Re: Debugging 16 bit dos programs
    By: Digital Man to Nelgin on Fri Jul 21 2023 12:27:46

    I've been looking for a utility that will let me step through a dos program and look at the instructions while also being able to see what is displayed on the screen. I've not had much luck in finding anything that'll do the job and open to suggestions if anyone knows of something that'll do the job.

    debug.exe is included with MS-DOS, isn't it?

    I don't think that also shows you the program running in real time along with the debug lines.

    It lets you set break points, examine registers, memory, stack. Those are the pretty standard features of a debugger. "Debug lines" aren't really a standard thing, certainly MS-DOS had no such concept.
    --
    digital man (rob)

    Sling Blade quote #13:
    Karl: He lives inside of his own heart. That's an awful big place to live in. Norco, CA WX: 67.5øF, 91.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net