471,354 Members | 1,014 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

memory breakpoints/buffer overflows in the VC++ 2005 debugger

I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?

Note that moving to Visual Studio 2008 is not an option.
Feb 16 '08 #1
2 2028
Does VS 2008 have this feature?

Way back in my VAX/VMS days, the debugger had a feature called a "watch
point", which would break into the debugger when data at a specified memory
address was modified. The debugger did this by write protecting the page
containing the watch point, then handling the resultant access violations,
completing those that don't involve the watch point and breaking into the
debugger on those that do.

Bob

"Jonathan Wilson" <jf*****@tpgi.com.auwrote in message
news:uW**************@TK2MSFTNGP05.phx.gbl...
>I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?

Note that moving to Visual Studio 2008 is not an option.
Feb 16 '08 #2
Hi Jonathan!
I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?
Start your project in the debugger. Set some breakpoint where the
variable is accessible.
Then in the menu:
Debug|New Breakpoint|New Data Breakpoint...

The specify either the address or the variable name.

Depending on the processor, normally 4 data breakpoints are natively
supported.

PS: Memory(Data)-Breakpoints are a avilable since several years in VS...
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Feb 16 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by blugus | last post: by
5 posts views Thread by Noa Garnett | last post: by
5 posts views Thread by lawrencelee | last post: by
81 posts views Thread by Peter Olcott | last post: by
1 post views Thread by theresegt1 | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.