Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New Data Breakpoint disabled in Visual Studio 2008 mixed project

In a DLL invoked from C++/CLI code I don't seem able to set Data Breakpoints in some pure C code. The menu option New Data Breakpoint... is disabled as is the popup in the breakpoints window. I haven't been able to find anyone else reporting this, the only similar experience is for a Mobile developer.

Debugging is otherwise working fine - I can set Watches and breakpoints on functions.

I'm using Visual Studio 2008 Professional sp1 on Vista x64.

like image 559
Andy Dent Avatar asked Oct 20 '09 08:10

Andy Dent


People also ask

Why are my breakpoints disabled?

If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.

How do I enable breakpoints in Visual Studio?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

How do I add a breakpoint to all methods in visual studio?

Press F3 and then press F9 to add a breakpoint.

How do I temporarily disable breakpoints in Visual Studio?

You can disable all breakpoints in one of the following ways: On the Debug menu, click Disable All Breakpoints. On the toolbar of the Breakpoints window, click the Disable All Breakpoints button.


1 Answers

I think that setting data breakpoints is only available if you are debugging in native mode. It is not available in managed mode, or mixed mode debugging.

like image 189
1800 INFORMATION Avatar answered Oct 08 '22 00:10

1800 INFORMATION