daveomcd
daveomcd

Reputation: 6565

ASP.NET: The breakpoint will not currently be hit. No symbols have been loaded for this document

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.

Upvotes: 1

Views: 3516

Answers (3)

Marinha do Nascimento
Marinha do Nascimento

Reputation: 808

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.

Upvotes: 0

azote
azote

Reputation: 616

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)

Exact Location where to change the settings

Upvotes: 1

daveomcd
daveomcd

Reputation: 6565

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.

Upvotes: 1

Related Questions