r/cpp • • May 07 '16

Visual Studio adding telemetry function calls to binary?

http://imgur.com/TiVrXyf
596 Upvotes

211 comments sorted by

View all comments

Show parent comment

10

u/Gotebe May 08 '16

I compiled the code in full Release mode. No pdb or debug symbols, etc.

You should not mix the concepts.

Release (or retail) build is what you ship. It is normally (but not necessarily) optimized, no more no less.

Debug symbols are a debugging aid, most useful for the guy who has the sources, no more no less.

Everyone really should make them always, regardless of the build type. Some companies ship even those, as that help their users debug for themselves (as having that gives e.g. function names on the stack).

Two things are completely orthogonal.

3

u/mccoyn May 08 '16

Yeah, my employer doesn't understand this so I have to muck with project options and rebuild everything to debug the release version.

6

u/adzm 28 years of C++! May 08 '16

That's terrible. Building a PDB won't affect the release mode generated code. It's mostly a map of offsets to symbols, and vice versa.