Is there debug.exe equivalent for Windows7?

5

3

Is there a debug.exe equivalent for Windows7 where I can write machine code and see what results they have after execution?

Eduard Florinescu

Posted 2012-11-26T10:07:40.580

Reputation: 2 116

http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx maybe that is what you are looking for. – avirk – 2012-11-26T10:36:15.243

I don't needed for debugging I'd like to write code machine for educational purposes much like the now defunct debug.exe. – Eduard Florinescu – 2012-11-26T11:01:49.380

Can you tell use the version of Windows 7? – Jet – 2014-05-18T20:59:15.803

Answers

5

Well, if you are looking only for Windows 7 then you can use WinDBG debugger which is available for both 32-bit and 64-bit Windows. You have to learn it and just search on Google for WinDBG tutorial/commands and you will get them.

You can also use OllyDbg but I'm not sure it will work on Windows 7 or not, as they have not mention it on their main page and they have just reported that it works like a charm on XP.

You can also take a look on PEBrowse Professional Interactive. Which has two versions

PEBrowseDbg64 Interactive(v3.2) is a 64-bit executable and requires the .NET framework. It will debug Win32/Win64 executables, managed (.NET) and/or native.

PEBrowse Professional Interactive (v9.3.3) is a debugger for Microsoft Windows 2000, Windows XP, Windows 2003, Windows Vista32, and Windows 7.

A very good way if you really miss it set up a virtual machine and use XP Mode in Windows 7 and you can use debug.exe in that way easily. As this question has end with the same solution of VM.

avirk

Posted 2012-11-26T10:07:40.580

Reputation: 15 151

is it not possible to run other OS as a VM since I remember there was a debug.exe also in MS-DOS? – Eduard Florinescu – 2012-11-26T16:52:38.373

Yes you can set it up for MS-Dos as well, its VM and you can configure it with your desired OS. :) – avirk – 2012-11-26T16:55:22.497

@EduardFlorinescu i understand that technically Booting into Win9X is DOS so you might get debug to run from there too. – barlop – 2014-05-18T20:42:18.357

Furthermore it is in Win7 ultimate 32bit. not in win7 ultimate 64bit. – barlop – 2014-05-18T20:52:32.180

3

I've heard that it's in the 32 bit version of win7 but not the 64 but I can't confirm as I use 64. Are you trying to write assembly or machine code? I'm not sure what debug does, whether it's machine code or assembly. Try out WinAsm if it's assembly you're trying to learn/use. It's a free IDE I've used recently.

Added by Barlop

What you heard is right. The following is from Win 7 32bit, debug is available. Debug is not available in Win 7 64bit. Below is a screenshot from Win 7 32bit. (version of win7 tested on is win7 ultimate)

enter image description here

Codezilla

Posted 2012-11-26T10:07:40.580

Reputation: 828

It is installed and works in 32-bit Windows 7 Pro and in 7 embedded. It is included in Windows 10 32-bit, but it has some quirks (for instance the BIOS does not seem to be mapped to f000:0). – trindflo – 2019-07-31T19:45:45.007

2This answer does not seem to have had the required research done before answering since the user only believes this to be the case. – Ramhound – 2012-11-26T10:34:36.730

It's never been on any 32 or 64 bit version I've ever had =P so put that in your pipe and smoke it. – Codezilla – 2012-11-26T10:42:12.870

Which is my point. This functionality doesn't exist on Windows. If you link to where you "heard it" I will remove the downvote. – Ramhound – 2012-11-26T10:56:40.583

@Ramhound What are you talking about saying the functionality doesn't exist on Windows. It exists in XP, it exists in Win 7 32bit. How can you say it doesn't exist in Windows. No doubt it was in Win98 too. You say he hasn't done any research. You should. And he was absolutely right. – barlop – 2014-05-18T20:48:10.067

1@Ramhound Right now I'm writing this from computer which runs Windows 7 Ultimate 32 bit, and unfortunately I have debug.exe ;) But I've installed a lot of tools such as Visual Studio 2013, WDK and so on. I'm not sure, maybe it came with that tools? – Jet – 2014-05-18T20:56:30.460

@Jet No I recall seeing it before installing stuff. I have VS 2013 too but saw it before then. – barlop – 2014-05-18T21:34:48.137

2

The public domain CDBA is pretty similar to CDB/NTSD, runs on Win64 systems; its source code (in assembler) is freely available.

It can be found at http://www.japheth.de/debxxf/CDBA.html (description) and http://www.japheth.de/debxxf/CDBA.zip (source + binary)

Federico

Posted 2012-11-26T10:07:40.580

Reputation: 21