3

I am trying to debug some assembler code on windows. For 32 bit code I was using Ollydbg, but it is unable to open 64-bit exe files.

I also tried using the visual studio debugger but I think the stack is somehow getting corrupted and I can't figure out how to place a breakpoint at the program entry, so this doesn't work

So are there any free programs that work?

If it matters I am using nasm and then gcc to compile the exe's

John Palmer
  • 25,356
  • 3
  • 48
  • 67
  • 1
    Whatever usefulness this topic has I needed a debugger too. So randomly I've found some: [FDBG](http://fdbg.x86asm.net/), [Visual DuxDebugger](http://www.duxcore.com/index.php/prod/visual-duxdebugger/overview) and [PEbrowseDbg64](http://www.smidgeonsoft.prohosting.com/pebrowse-pro-interactive-debugger.html). Though not one of them is as good as ollydbg. – DitherSky Aug 01 '13 at 10:19

2 Answers2

2

why not give windbg a try, its made by MS and free, here's the 64bit version.

Necrolis
  • 25,836
  • 3
  • 63
  • 101
1

Visual studion has an excellent debugger for both 32 bit and 64 bit windows. If you are using nasm or yasm assembler then use the option -gcv8 on the assembler. This produces debug info that works with visual studio. You have to make a project in VS that includes both C/C++ and asm files. The asm files need a custom build rule looking something like: CommandLine="yasm -fwin64 -gcv8 -o$(InputName).obj [inputs]" Outputs="$(InputName).obj"

A Fog
  • 4,360
  • 1
  • 30
  • 32