473,811 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5532
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
1752
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 steps: Configured DCOM Connected to database via Server Manager (I can see the SQL server and the stored procedure)
4
2031
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
4077
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 steps: Configured DCOM Connected to database via Server Manager (I can see the SQL server and the stored procedure)
0
1283
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 breakpoint, they now have a Yield sign and the following message apprears: The breakpoint will not currently be hit. No symbols have been loaded for this document. I have read through the numerous post on this subject but none them provide...
0
1017
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 the breakpoint will not be currently be hit... elsewhere in the app breakpoints work fine... i have done a power off/reboot. rebuild... any ideas?
10
21830
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 holding the mouse over it I see a message saying: "The breakpoint will not currently be hit. The specified module has not been loaded". I have no problem when debugging a normal full framework application. I have not changed anything in my settings...
7
7508
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 sure whats going on here. I only have the code in one location, so I'm not sure why I'd get a message like this. Thanks for any suggestions. Michael Lee
5
2284
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
2706
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 to the codebehind and I placed a few breakpoints in the codebehind but none of the breakpoints were being hit. Upon closer inspection i noticed that once I started running the program in debug mode the normal breakpoint circle turned to a...
0
9728
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10135
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.