473,378 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

The breakpoint will not currently be hit

TC
When I try to debug my code, Visual Studio is skipping my breakpoints.

At runtime, the solid red circle becomes only the outline of a circle,
and if I hover over the breakpoint I see the message "The breakpoint
will not currently be hit. No symbols have been loaded for this
document."

Breakpoints seem to be functional in the startup project, but nowhere
else. I've found that I can hit a breakpoint in the startup project,
then step into the code where breakpoints aren't functional and debug
normally.

As a test, I created a completely new project and put a breakpoint
there. That breakpoint is skipped.

All my projects are configured for Debug. I've cleaned and completely
rebuilt all projects, yet I still experience this problem.

Needless to say, this is very frustrating. Can anyone suggest a
solution?
-TC

Dec 19 '06 #1
4 5507
Make sure you are not running in Release mode. Breakpoints work only in
Debug mode (for obvious reasons).

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Dec 19 '06 #2
TC
Dick,

Thanks for the suggestion, but all my projects are configured for
Debug. That isn't the problem.

-TC
Dick Grier wrote:
Make sure you are not running in Release mode. Breakpoints work only in
Debug mode (for obvious reasons).

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Dec 19 '06 #3
BTW, I see that you said that the project is in Debug mode... However, I
have to suggest that you double-check that the Advanced Compiler Options
Generate Debug info drop down is not set to "None."

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Dec 19 '06 #4
TC
Dick,

Thanks for another good suggestion. I didn't know about that setting,
but I just checked it and found that it is set to "Full".

I just shut down and restarted Visual Studio. Now, VS is hitting the
breakpoints.

I wasn't very careful with my observations, and I'm not sure if it was
the clean & rebuild which fixed the problem, or whether it was
restarting Visual Studio which did it.

If anyone else experiences this problem, I recommend that you follow
Dick Grier's suggestions -- make sure you are in Debug mode and that
the Generate Debug option is not "None" -- and if they don't work, try
cleaning & rebuilding the solution, then restarting Visual Studio. It
worked for me.
-TC
Dick Grier wrote:
BTW, I see that you said that the project is in Debug mode... However, I
have to suggest that you double-check that the Advanced Compiler Options
Generate Debug info drop down is not set to "None."

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Dec 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ash | last post by:
Hi all, I have a C# web application which calls a number of stored procedures. I wish to step into the stored procedures while debugging i.e "Mix-mode debugging": I have completed the following...
4
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
2
by: Ash | last post by:
Hi all, I have a C# web application which calls a number of stored procedures. I wish to step into the stored procedures while debugging i.e "Mix-mode debugging": I have completed the following...
0
by: RobbRoss | last post by:
I have a c# web project from VS 2003 that went through the VS 2005 conversion wizard. The problem is that the C# code behind will not stop at the breakpoints. When the cursor is hovered above the...
0
by: guy | last post by:
ASP.NET2 i have set a breakpoint(in fact multiple breakpoints) and when i run the application i it does not stop at the breakpoint, hovering over the breakpoint (deformed) i get the message...
10
by: Ole | last post by:
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when...
7
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi Everyone, I just started to get this error today. "The breakpoint will not currently be hit. The source code is different then the original. It seems to walk right over my breakpoints. I'm not...
5
by: Max2006 | last post by:
Hi, I am using Visual C# 2005 and I like to setup breakpoint that pause execution upon a class variable change. Is that possible?
4
by: RSH | last post by:
I have a project that we have had in 2005 for a couple months now and everything has been working fine. Now today I open it up and get the latest version from SourceSafe and I made a few changes...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.