Debugging .NET Framework with Visual Studio 2013

Visual Studio 2013 allows easily to debug .NET 4.5.1 Framework source code. If you use a previous version of .NET (4.5 or earlier) change the target .NET version of the your projects to 4.5.1 or higher. If you have some C++ CLI projects modify TargetFrameworkVersion attribute manually in all *.vcxproj files:

<PropertyGroup Label="Globals">
  ...
  <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
  ...
</PropertyGroup>

then go to Tools->Options->Debugging->General and check/uncheck the following options:

Debugging .NET Framework with Visual Studio 2013

after than go to Debugging->Symbols and empty the symbol cache to avoid possible conflicts with previous version of .NET:

Debugging .NET Framework with Visual Studio 2013

Start debugging session and wait a moment while Visual Studio will download all the *.pdb files.

Downloading PDB files

Now you can step into or set a breakpoint inside .NET source code:

.NET source cod

Leave a Reply

Your email address will not be published.