Jump to content


Photo

* Visual Studio Debugger Question *


  • Please log in to reply
4 replies to this topic

#1 Dwack

Dwack

    X-S Young Member

  • Members
  • Pip
  • 51 posts

Posted 26 November 2011 - 05:57 PM

So I am debugging in VS, setting breakpoints inside an xex. What I am trying to do is use the "When hit" option to print messages to the output window when the breakpoint is hit. The goal is to get it to print a string that the register I am tracking is pointing to.

IPB Image

Result::

CODE
namePointer = 0x00000000b631ddb5
namePointer = 0x000000007001cb90
namePointer = 0x000000007001bed0


Changing the above message to "namePointer = {r4,s} || namePointer = {r4,x}" results in:

CODE
namePointer = -75 '' || namePointer = 0x00000000b631ddb5
namePointer = -112 '.' || namePointer =  0x000000007001cb90
namePointer = -48 '' || namePointer = 0x000000007001bed0


Anyone know if there is any way to get it to print the string that the register points to?

#2 Dwack

Dwack

    X-S Young Member

  • Members
  • Pip
  • 51 posts

Posted 27 November 2011 - 08:20 AM

So after a lot of searching around and more trial and error I was able to solve this myself.

If anyone is interested:

Successfully prints the string pointed to by r4.

IPB Image

#3 vampirexx

vampirexx

    X-S Young Member

  • Members
  • Pip
  • 46 posts

Posted 27 November 2011 - 05:27 PM

What is the purpose of this tool Dwack? To hack for cheats into the xex?

#4 Dwack

Dwack

    X-S Young Member

  • Members
  • Pip
  • 51 posts

Posted 27 November 2011 - 05:54 PM

QUOTE(vampirexx @ Nov 27 2011, 11:27 AM) View Post

What is the purpose of this tool Dwack? To hack for cheats into the xex?



It's part of the debugging tools that come with Visual Studio. Used for debugging code on a Dev.

#5 K3thunder

K3thunder

    X-S Young Member

  • Members
  • Pip
  • 38 posts

Posted 23 January 2012 - 08:07 AM

this was useful, thanks dwack




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users