12871

ASP.NET: The breakpoint will not currently be hit.

Question:

I was having this issue for several days. I finally figured out a fix for ASP.NET programmers, and I figured I would share.

Problem

After setting a breakpoint, and then debugging my breakpoint would turn yellow with an exclamation point. When hovering over the breakpoint it would say "The breakpoint will not currently be hit. No symbols have been loaded for this document.”. I tried cleaning, rebuilding, changing various settings through my project and visual studio. Nothing worked.

Answer1:

Solution

I was digging around in the Solution settings. I noticed that under "Web" tab my Start Action setting was set to something other than "Current Page". After setting it back to current page everything worked out.

I hope this solves the issue for other's like me that were exhausted after trying every other suggestion/answer they could find on the internet.



Answer2:

The issue only happens to me on ASP.Net Projects

  1. Right Click the Web Project
  2. Select Property Pages
  3. Start Options
  4. Make sure Use current page is selected (as shown below)



Answer3:

This happens because your project still has errors, so run the last correct version. Correct your mistakes, surely it is the error "CodeBehind" change it to "CodeFile" and surely the errors disappear, you can return project run without errors.



Recommend

  • Eclipse Luna StackOverflow exception at Build Time
  • Set tableview cell row height dynamically?
  • Archive validation error NSSetM
  • Is there a way to store Unicode Text in an Oracle Database configured as 'US7ASCII'
  • Solution for cleaning an image cache directory on the SD card
  • Java library to escape/clean XML?
  • Does Apple Clang lack CRC32 for ARMv8/Aarch64 under Xcdoe 10?
  • Greek letters in a GUI - PYTHON
  • Objective-C : getting error on console while trying to display app on ipad device?
  • Git cleanup/garbage collection on remote VSO git repository
  • Base Internationalization and “Could not find a storyboard named […]”
  • UITableView takes much longer to load when numberOfRows returns a large number
  • Sympy: working with equalities manually
  • How do you keep a running instance for Google App Engine
  • WordPress > setting permalink option via script buggy?
  • Primefaces lazy datascroller calling load twice
  • How to access meteor package name inside package?
  • Does Apportable support to build library binary (.a/.so)?
  • Rest Services conventions
  • SonarQube: Cannot deactivate rule with missing quality profile
  • ASP.NET MVC Application won't update some controllers
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • How to get Eclipse Oxygen to run on Java 9
  • How do I get HTML corresponding to current DOM tree?
  • JQuery Internet Explorer and ajaxstop
  • JSON response opens as a file, but I can't access it with JavaScript
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Switching to Release Build causes runtime error in Web Reference
  • Ajax Loaded meta Tags
  • Debugging ASP.NET on a built-in web server suddenly stops
  • How to recover from a Spring Social ExpiredAuthorizationException
  • Change an a tag attribute in JavaScript based on screen width
  • Javascript + PHP Encryption with pidCrypt
  • QuartzCore.framework for Mono Develop
  • Apache 2.4 - remove | delete | uninstall
  • XCode can't find symbols for a specific iOS library/framework project
  • File upload with ng-file-upload throwing error
  • Free memory of cv::Mat loaded using FileStorage API
  • Java static initializers and reflection