News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Similar tool like "debug" for 32bit?

Started by sys64738, December 01, 2013, 09:43:03 PM

Previous topic - Next topic

sys64738

Is there some similar tool like debug is for 16 bit which can do 32 bit assembly (or higher)? I wonder because I find it rather usefull that you can assemble directly into memory and test small samples without the need and overhead of writing a full blown assembly source first. I think something like this might be usefull to recommend for beginners. It may also be suefull if you want to write some small function to dump directly into a binary.

Or do you think, when somebody learns assembly, he should start with a source assembler nevertheless.

GoneFishing

I think it can be done in WinDbg
but it must be attached to the debuggee  ... (say DUMMY.EXE)
and you have much the same commands which you used to type working with DEBUG.EXE

EDIT: I've forgotten to mention such  command-line user-mode debuggers as NTSD and CDB
(all of them are from Debugging Tools for Windows )

Vortex

You should try OllyDbg. It's very powerful :

http://www.ollydbg.de

Gunther

Hi sys64738,

a kind of a bred and butter debugger is Olly. It's Jochen's favorite and I think it'll fir your needs.

Gunther

Erol, I was a bit to late.  :shock:

Gunther
You have to know the facts before you can distort them.

MichaelW

Japheth has an extended MS Debug clone that can do 32-bit code.

http://www.japheth.de/debxxf.html


Well Microsoft, here's another nice mess you've gotten us into.

vogelsang

you might also use IDA PRO Freeware for 32 bit.

https://www.hex-rays.com/products/ida/support/download.shtml

It's powerful disassembler with debugger. But OllyDbg  you'll like very much.

for 64 bit:

http://www.duxcore.com/index.php/prod/visual-duxdebugger/overview
"How beautiful this world ruled by dibs, not a gun!"
...

japheth

Quote from: sys64738 on December 01, 2013, 09:43:03 PM
Is there some similar tool like debug is for 16 bit which can do 32 bit assembly (or higher)? I wonder because I find it rather usefull that you can assemble directly into memory and test small samples without the need and overhead of writing a full blown assembly source first. I

MS tools CDB and NTSD ( contained in "debugging tools for windows" both support the 'A' command that does line assembly ( 32- or 64-bit ). The problem is that they - unlike DEBUG - won't start without a debuggee. A simple source might do the trick:


.386
.model flat, stdcall
.code
start:
ret
end start


- assemble and link this prog.( test.exe )
- enter "CDB test.exe"
- inside CDB, enter "g 401000" - this will make CDB stop at label "start"
- and now you can use the "A' command to enter whatever you want.

P.S.: actually, WinDbg can also do this ( it's a feature of the MS debug engine ) - it's just that CDB and NTSD look more DEBUG-like.

P.P.S: Forget Olly!  :bgrin:

sys64738

Thanks! I'm using WinDbg and IDA, but for some reason IDA debug doesn't work on WinXP, only on my W7 box. I didn't know though that IDA can also assemble. I'v read often about Olly, seems to be quite a powerfull debugger as well.

dedndave

nothing wrong with Olly   :P

to quote Jochen....

QuoteF7 = step forward and go inside procs
F8 = step forward but don't go inside procs (this is probably what you want)
F9 = go until you hit ExitProcess or an exception (e.g. int 3)

Gunther

You have to know the facts before you can distort them.