How do I get my breakpoints working?
I am getting this message when running a C# console app in debug mode:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
Here are other specs related to this issue:
Microsoft Visual Studio Professional 2015 Version 14.0.25123.00 Update 2 Microsoft .NET Framework Version 4.6.01055
Installed Version: Professional
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11106.0 ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0 For additional information, visit http://www.asp.net/
Code alignment 12.1 Code alignment helps you present your code beautifully, enhancing clarity and readability.
CodeMaid 10.1.93 CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
Common Azure Tools 1.7 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
ConfigurationTransform 1.3 Automatically transform app.config during build process. Once the transformation is set, it will run on other build machines without the extension.
GitHub.VisualStudio 1.0 A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
JavaScript Language Service 2.0 JavaScript Language Service
JavaScript Project System 2.0 JavaScript Project System
JetBrains ReSharper Ultimate 10.0.2 Build 104.0.20151218.120627 JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.
Microsoft Azure Mobile Services Tools 1.4 Microsoft Azure Mobile Services Tools
Node.js Tools 1.1.31117.00 Adds support for developing and debugging Node.js apps in Visual Studio
Node.js Tools - Profiling 1.1.31117.00 Profiling support for Node.js projects.
NuGet Package Manager 3.4.3 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
NuGet References 1.0 Save time by managing your NuGet references right from the Solution Explorer packages.config
PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.60311.1 Microsoft SQL Server Data Tools
StyleCop 4.7 Provides source code style and consistency tools. See https://github.com/Visual-Stylecop/Visual-StyleCop for more details.
TypeScript 1.8.30.0 TypeScript tools for Visual Studio
Here are my debugging settings:
Here are my settings for the projects:
Here are the packages I am using:
<package id="EntityFramework" version="6.1.3" targetFramework="net452" />
<package id="log4net" version="2.0.3" targetFramework="net452" />
<package id="Magnum" version="2.1.3" targetFramework="net452" />
<package id="MassTransit" version="2.9.9" targetFramework="net452" />
<package id="MassTransit.Log4Net" version="2.9.9" targetFramework="net452" />
<package id="MassTransit.MSMQ" version="2.9.0" targetFramework="net452" />
<package id="Newtonsoft.Json" version="6.0.6" targetFramework="net452" />
Other references not covered by nuget:
How do I get my breakpoints working?
I just created new console app + class library. Please be sure that console app has reference on class library (like on image)
I wrote that because I don't see that on your screens.
Than plz right click on solution and select "properties..." You will see smth like that: Check that configuration + platform are equal for your projects and that checkboxes 'Build' are both selected. If that checkboxes are selected then after 'clean build' of you solution you will see smth like that in the bin\Debug folder of colsole app:
Please notice that class library has 2 files (highlighted on screen): dll + pdb. In that case dll+pdb are in synchro state and your breakepoints will work in class library code.
If you have no pdb file for class library project after build than may be your reference on class library is NOT a reference on a VS project. Please check that you added reference correctly (like on image):
DO NOT reference on dll file of class library directly via 'Browse' dialog.
You can check that your console app refenced correctly on class library project - please open console app csproj file on edit and look on reference:
If you have BAD refence (on a .dll file):
than delete that reference via context menu in VS and add a correct one.
I hope that will help you.
You have my sympathy for trying to fix this. When I compare settings with mine I find 2 differences in Debugging|General:
The first one may fix your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With