1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

debug.exe

Discussion in 'Software Development' started by malkyr, Sep 11, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. malkyr

    malkyr Thread Starter

    Joined:
    Jul 23, 2002
    Messages:
    4
    Hi
    im trying to use debug.exe to decompile a bitmap file. Does anyone know what i should type in? Ive tried

    -U d:\folder\fillename

    and various other combinations of the same form. The U is for Unassemble (according tto the help page) but I always keep getting error. am i doing something wrong?
     
  2. codejockey

    codejockey

    Joined:
    Feb 11, 2002
    Messages:
    1,405
    I may have misunderstood your question, so feel free to disregard at will :))) ...

    If you are using the DOS debug, you normally invoke it with the name of the file you wish to debug (e.g., debug command.com). You should receive a "-" (minus) prompt. At the prompt, you can enter commands such as 'U' (without the quotes) to disassemble the binary. Note that you can also specify a range for the disassembly.

    Hope this helps.
     
  3. malkyr

    malkyr Thread Starter

    Joined:
    Jul 23, 2002
    Messages:
    4
    hi thanks for your reply.
    when you say invoke debug with the filename does that just mean i type the file name (without the path info) after the "-" prompt. Ive tried this and it doesnt seem to work.
    i run debug from the start menu by going to "run" then typing in debug.exe
    after that it opens with a "-" prompt.
    what should i type in after that.
     
  4. codejockey

    codejockey

    Joined:
    Feb 11, 2002
    Messages:
    1,405
    No, sorry for any confusion. What I meant is that when you first start debug, you should specify the name of the file that you want to examine. So, for example, if you wanted to examine a file named regedit.exe, at the command line you would type: debug regedit.exe

    By the time you receive the minus prompt, debug has already decided what file (if any) you want to examine, so you have to tell debug what file you are interested in right away, before you get to the minus prompt. The general idea is that you should always type something like: debug <filename> at the command prompt, where <filename> is the name of the file you want to examine. In your example, you would type: debug d:\folder\filename followed by a carriage return ('enter" key); this should get you to the minus prompt.

    Hope this helps.
     
  5. codejockey

    codejockey

    Joined:
    Feb 11, 2002
    Messages:
    1,405
    Quick addendum: since you are using the "Run" command from the start menu, you should type: debug.exe d:\folder\filename instead of just debug.exe in the dialog box.

    Hope this helps.
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/164055