Ask the Expert

Stopping Visual C++ debugger

In my Visual C++ application, I need to stop in the debugger when a specific memory location is read. Is there any way to do that?

Requires Free Membership to View

In the Visual C++ debugger, you can only stop on memory location writes if the data changes. However, the magical new version of WinDBG available at offers a BA (Break on Access) command that will stop on memory reads. Be prepared to spend some time with WinDBG as it's much harder to use that the Visual Studio debugger.

This was first published in January 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: