Ollydbg (and probably other debuggers) can view my C++ source code
Really. With the comments too.
What the hell?
I thought it was impossible or at least hard to retrieve the source code for a C/C++ application but opening my executable with OllyDbg and going to View->Source isn't hard.
Anyway, how do I prevent this?
Re: Ollydbg (and probably other debuggers) can view my C++ source code
Compile optimized, with no debug information.
Viggy
Re: Ollydbg (and probably other debuggers) can view my C++ source code
How do I do that in VS2010?
Edit: It's okay now. I deleted the .pdb file from the executable directory.
Thanks
Re: Ollydbg (and probably other debuggers) can view my C++ source code
BTW, Is there some kind of anti-debugger protection for executables?
Re: Ollydbg (and probably other debuggers) can view my C++ source code
No. Ultimately, anyone can view assembly for your application. The "protection" is to change to a "Release" version, not a "Debug" version.
http://msdn.microsoft.com/en-us/libr...=VS.71%29.aspx
Viggy