News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Code debugger

Started by DanWebb314, April 08, 2012, 04:27:17 AM

Previous topic - Next topic

DanWebb314

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

dedndave

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

ragdog

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,

DanWebb314

Thank you both.  I downloaded Ollydbg and it looks like it will do what I want.

Twister

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