Ashish Negi
Ashish Negi

Reputation: 5301

How to make Visual Studio go into the #define during debugging?

When i am debugging my code in visual studio and it goes to a #define like this :

#define DEC_CONSTRUCTOR(a,b) line 1 \
        line 2 \
        line 3 

and code is

DEC_CONSTRUCTOR ( arg1, arg2 ) {     < - LINE X
... some things ...                  < - LINE Y

};

When i debug point reaches LINE X even for one step ahead it goes to LINE Y.

It would be great if i could make it go through line 1, 2 and 3 in anyway like doing something [ like some option ] and then recompiling.

Thanks in advance.

Upvotes: 1

Views: 61

Answers (1)

TobiMcNamobi
TobiMcNamobi

Reputation: 4813

Unfortunately this is not possible. #define macros are handled by the preprocessor, so the compiler cannot generate debug info for it.

Upvotes: 2

Related Questions