VS DataBreakpoints: difference between C and C ++

when you install the databreakpoint in MSVS, then you put in the address and the number of bytes and finally you can choose betwenn "C" and "C ++".

this last part I don’t know what is it about? What is the difference in choosing C and C ++ in this situation?

thank!

+3
source share
1 answer

This only matters when using an expression instead of directly entering an address. Analysis rules for C expressions are different from C ++ rules. I can’t come up with a great example besides expressing a C ++ member such as "& this-> member". The debugger cannot figure it out on its own, just mix the C and C ++ code in one process.

+1
source

Source: https://habr.com/ru/post/1727475/


All Articles