By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 1,904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Debugging issues

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.