Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to repair Visual Studio locals/watches in C++ (Debug build)

Sometimes VS autos/locals/watches break and instead of variables/values all I have is different kinds of:

CXX0029: Error: not struct pointer  
CXX0033: Error: error in OMF type information   
CXX0072: Error: type information missing or unknown 
CXX0025: Error: operator needs class/struct/union   

Rebuilding project, cleaning PDB/NCB etc doesn't solve it. What can I do?

like image 928
John Avatar asked Aug 06 '11 23:08

John


People also ask

How do I Debug C in Visual Studio?

To do that, open C++ file in VSCode and either hit F5 or go to Debug -> Start Debugging and select C++ (GDB/LLDB) then select g++.exe build and debug active file . Notice that I've added one more optional configuration g++ build & run active file in launch. json and g++ build & run in tasks.

How do I fix Visual Studio build errors?

To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key. Visual Studio opens the documentation page for that error, if one exists. You can also use the search tool at the top of the page to find articles about specific errors or warnings.

How do I view locals in Visual Studio?

To open the Locals window, while debugging, select Debug > Windows > Locals, or press Alt+4. This topic applies to Visual Studio on Windows.

How do I Debug a breakpoint 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.


1 Answers

Look at this Microsoft support note on: FIX: CXX0033 Error in OMF Type from Forward Class Declaration

Once you fix the PCH problem cited in the support note, I think all your errors will go away.

like image 140
yasouser Avatar answered Sep 24 '22 22:09

yasouser