The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: DanWebb314 on April 08, 2012, 04:27:17 AM

Title: Code debugger
Post by: DanWebb314 on April 08, 2012, 04:27:17 AM
I am new to assembly language.  I am looking for a debugger to use with MASM32.

I found this link:
http://www.intelligent-systems.info/classes/ee360/tutorial.htm

I started following it and it works OK until I get to this link:
http://www.nuvisionmiami.com/books/asm/cv/cv41patch.exe

I think this link has been hacked.  It says I am a winner.

This first link may be old.  Can you tell me how to setup a debugger.  I would like to step though a program line by line and be able to look at the registers.

Thank you for any help
Title: Re: Code debugger
Post by: dedndave on April 08, 2012, 05:34:08 AM
1) you'd probably like Olly, better...
http://www.ollydbg.de/
you can get version 1 and/or 2 - they each have advantages - both may be present on your system
(of course, only one may be the default)

2) Kip Irvine has the patch you seek...
http://www.asmirvine.com/asm/5th/cv/codeViewPatch.htm
i believe that's a self-extracting zip
Title: Re: Code debugger
Post by: ragdog on April 08, 2012, 08:30:49 AM
Ollydbg 2 is under devolpment and have bugs but is good
The best Option is use Ollydbg 1.10

Build your project with Debug build then have you debug infos in your exe or what ever.
this is usefull to debug your projects for better code reading in Ollydbg.

To add debug infos use this settings (/Zi /Zd) and (/DEBUG)  for Masm32

ml /c /coff /Cp /Zi /Zd "test.Asm"
link /SUBSYSTEM:WINDOWS /DEBUG /VERSION:4.0 /OUT:"test.exe" "test.obj"  "test.res"


Greets,
Title: Re: Code debugger
Post by: DanWebb314 on April 10, 2012, 01:42:03 AM
Thank you both.  I downloaded Ollydbg and it looks like it will do what I want.
Title: Re: Code debugger
Post by: Twister on April 11, 2012, 12:20:26 AM
There is also WinDbg which can be found here: https://www.microsoft.com/whdc/devtools/debugging/default.mspx

Or, it can be installed via the Windows SDK Web Installer (Windows SDK is a must if you are a developer on any Windows system!)

Windows SDK 7.1 for Windows 7 and .NET Framework 4 : https://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8279