Debugging C Code in Microsoft Visual Studio 2015

Source: Intro to Intel  x86, OpenSecurityTraining
1 – Fix C++/ Linker Setup Properties
* Program Database (/Zi)
* Disable Security Check
* __cdecl (/Gd) or __stdcall (/Gz)
* Linker/Enable Incremental Linking (No)
2 – Breakpoint on Main -> Go to Disassembly
3 – Windows/Memory -> Address on ESP (hexadecimal display and 4-byte integers)
4 – Windows/Registers
Picture

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s