How does Visual Studio know where my source code is?

Hi, I built the SDL2-2.0.1 with Visual Studio Ultimate 2012. And it gave me the .dll and .lib which I needed to make SDL2 applications. However I would never guess that Visual Studio would be able to use the source code for debugging. Whenever I go (F11) with the debugger, into the source of SDL2 functions it redirects to the actual source code, which is incredible.

How does it know about the source code? is it because I built the library myself? does Visual Studio really store the source code location of all the .dll s I build?------------------------
The best of us, find happiness in misery.

When you build it with debug flags, it generated a .pdb file. It’s
basically a file that stores all information it needs for debugging.
If you build with release flags, it doesn’t generate them.On Mon, Jan 20, 2014 at 1:38 PM, helicalius wrote:

Hi, I built the SDL2-2.0.1 with Visual Studio Ultimate 2012. And it gave
me the .dll and .lib which I needed to make SDL2 applications. However I
would never guess that Visual Studio would be able to use the source code
for debugging. Whenever I go (F11) with the debugger, into the source of
SDL2 functions it redirects to the actual source code, which is incredible.

How does it know about the source code? is it because I built the library
myself? does Visual Studio really store the source code location of all the
.dll s I build?


The best of us, find happiness in misery.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org