Debugging issues

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top