Re: Visual Studio and Hardware Breakpoints

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I was hoping one of the Kernel Debuggers could lend some assistance
with Visual Studio. Is it possible to instruct Visual Studio to use a
hardware breakpoint rather than those insidious software breakpoints?

I'm working with code that is not tolerant of the silent changes of
inserting a 0xCC into the .text section.


AFAIK, Visual Studio debugger can only use hardware breakpoints on data access
(only for write). If you need to break when the code executes, consider WinDbg.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]


.



Relevant Pages

  • Visual Studio and Hardware Breakpoints
    ... I was hoping one of the Kernel Debuggers could lend some assistance ... with Visual Studio. ... Is it possible to instruct Visual Studio to use a ... hardware breakpoint rather than those insidious software breakpoints? ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Visual Studio and Hardware Breakpoints
    ... with Visual Studio. ... hardware breakpoint rather than those insidious software breakpoints? ... inserting a 0xCC into the .text section. ...
    (microsoft.public.win32.programmer.kernel)