How to debug a DLL with Visual Studio and gTest

If you need to debug a DLL file, and you are working with Visual Studio and your test are with gTest, you need to disable the «Just My Code» debugging feature.

Tools -> Options -> Debugging

and then

Uncheck «Enable Just My Code»

Now, run the project, and select the EXE generated by gTest. That’s all!