473,490 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Debugging issues

Hello,
I'm having some weird things happen when I step through my code.

I'm working with a large solution, containing a few projects, with many
classes/forms etc.
I'm trying to solve a minor issue with a combobox, and am having trouble
stepping through my code.

I have 2 breakpoints set, both in seperate Subs.
The 1st breakpoint stops the code where expected, but as I'm stepping
through this sub, when I F11 through 1 line of code (if it matters, it's
setting the displaymember of a listbox) - the code skips right to my next
breakpoint...without allowing me to see anything in between...
I'm a bit confused.

Also, I'm using Microsoft Application Blocks in this solution, and if I try
to step through any of the SQLHelper class, it behaves bizarre...
the yellow highlighted lines that signifies which line of code is about to
be executed, doesn't seem to match at all what is really going on.
Lines of comments are often highlighted, dim statements, and often only a
middle section of a line will be highlighted, instead of the entire thing.

I'm baffled...

Any ideas??

Thanks!!
amber
Jul 21 '05 #1
1 1411
Sounds like you've got some .pdb files that are out of sync. Are you using
the default Debug build configuration? Are you using project references to
the App Blocks? Try a Rebuild instead of a Build as well.

I've found it easiest to use project references with the App Blocks so that
build dependencies are managed for you especially if you are using App Blocks
for the first time and want to step through code. You can also reference App
Blocks assemblies...just make sure your're referencing debug assemblies if
your in the development phase to step in and see what's going on.

Another issue I've seen when the debugging isn't working as expected is
scarce resources...sometimes closing the IDE and re-opening will solve the
problem as well.

JP

"amber" wrote:
Hello,
I'm having some weird things happen when I step through my code.

I'm working with a large solution, containing a few projects, with many
classes/forms etc.
I'm trying to solve a minor issue with a combobox, and am having trouble
stepping through my code.

I have 2 breakpoints set, both in seperate Subs.
The 1st breakpoint stops the code where expected, but as I'm stepping
through this sub, when I F11 through 1 line of code (if it matters, it's
setting the displaymember of a listbox) - the code skips right to my next
breakpoint...without allowing me to see anything in between...
I'm a bit confused.

Also, I'm using Microsoft Application Blocks in this solution, and if I try
to step through any of the SQLHelper class, it behaves bizarre...
the yellow highlighted lines that signifies which line of code is about to
be executed, doesn't seem to match at all what is really going on.
Lines of comments are often highlighted, dim statements, and often only a
middle section of a line will be highlighted, instead of the entire thing.

I'm baffled...

Any ideas??

Thanks!!
amber

Jul 21 '05 #2

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

Similar topics

0
3202
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
6
1801
by: gerry | last post by:
I am almost at the end of my rope - I have to go through this process everytime a new version of studio is released or it is installed on a new machine - what a (^%&$^& pain. I am trying to...
23
3170
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch...
7
2569
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
5
7774
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
3
1845
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Does anyone know why I have no "Step Into" option during debugging in VS 2005/C# app? I have "Step Over" but no "Step Into" even though it would be stepping into one of my own functions inside the...
0
1075
by: Brad Pears | last post by:
I have a simple little test project and am testing out some system.io commands... I have a main form and in the form's load event I am running some code which I am debugging... When the code...
3
2716
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but...
4
12671
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
7
4090
by: GaryDean | last post by:
(this was also posted on the MSDN WCF forum but the answers over there are not so good) I have a WCF Library hosted by IIS 6 and it all works fine. However I need to step through the code in the...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
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...
1
6852
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...
0
5448
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,...
0
4573
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...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
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...

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.