Enough's enough!

S

Sueffel

What would cause the IDE to not be able to stop at breakpoints? I get
this annoying little "?" in the circle infront of the breakpoint, but the
code just flies right over it. I have reinstalled VS.NET, adn I do have the
Generate Debugging Info Checked, and Enable Build Warnings. So what gives?

Sueffel
 
J

Jerry Ham

I had that sort of behavior when the source code for a class I was using was
out of sync with the assembly itself.

Jerry
 
M

Mike Bulava

Uhm this is probably a stuid question but is your project running in debug
mode? You can check by looking at the dropdown box next to the Run button.
 
C

CJ Taylor

It can't load the debug symbols... if its an ASP.NET project, you probably
don't have permission to the Debugger Users group...

if not...

then you might want to check to make sure your running in debug mode as
stated by Mike. =)
 
S

Sueffel

Okay, I will look into that.. *sigh*

jim said:
Hi Sueffel,

this may be stating the obvious, but on the toolbar in the solution
configurations combobox what build mode is selected? if you've selected
release then the debug files (.pdb) aren't being generated and therefore
your breakpoints won't be hit.

if you are in debug mode, then i'd check your bin directory and make sure
that the .pdb files are actually there. if they aren't then you'll have to
figure out why. i'm not sure what would cause them to not be generated
except for the above situation and possibly the option you mentioned in your
post.

hope this helps,

jim
 
J

jim

Hi Sueffel,

this may be stating the obvious, but on the toolbar in the solution
configurations combobox what build mode is selected? if you've selected
release then the debug files (.pdb) aren't being generated and therefore
your breakpoints won't be hit.

if you are in debug mode, then i'd check your bin directory and make sure
that the .pdb files are actually there. if they aren't then you'll have to
figure out why. i'm not sure what would cause them to not be generated
except for the above situation and possibly the option you mentioned in your
post.

hope this helps,

jim
 
J

Jerry Ham

I recompiled the external assembly I was using and then manually copied the
recompiled DLL to the bin directory for the project I was debugging.

Jerry
 
S

Sueffel

A want to apoligize if I got snooty with anyone, this is about the 5th time
this has happened, and the other times, I had to slick my machine to fix it,
I'm not doing that again....

Sueffel
 
W

William Ryan

Can you use Debug statements and have them execute? For instance, Throw a
Debug.Assert(false) in the form load of your app. See if the assertion
dialog comes up. If it does, then your symbols are working.

BTW, is this a web app or desktop app?
 
R

Rob Teixeira [MVP]

Delete the DLLs *AND* (more importantly) the PDB files from your bin
directory.
Recompile, and see if that works.
Also, make sure you are compiling in "Debug" mode and not "Release" mode.
Release mode doesn't compile debugger information (such as breakpoints) into
the code.

-Rob Teixeira [MVP]
 
H

Herfried K. Wagner [MVP]

* "Sueffel said:
What would cause the IDE to not be able to stop at breakpoints? I get
this annoying little "?" in the circle infront of the breakpoint, but the
code just flies right over it. I have reinstalled VS.NET, adn I do have the
Generate Debugging Info Checked, and Enable Build Warnings. So what gives?

You compiled in the "Debug" configuration (this can be selected in the
toolbar of VS.NET)?

If you are already compiling a debug version, delete the "bin" folder
of the project and try again.

If this doesn't work: Does debugging work with new (blank) projects?
 
S

Sueffel

Sueffel said:
What would cause the IDE to not be able to stop at breakpoints? I get
this annoying little "?" in the circle infront of the breakpoint, but the
code just flies right over it. I have reinstalled VS.NET, adn I do have the
Generate Debugging Info Checked, and Enable Build Warnings. So what gives?

Sueffel

*sigh* Under the properties of the solution, I discovered that I didn't
have that particular project set to build, although I was being told that 3
were being built, 0 failed, 0 skipped.... Weird, but I will just have to
keep that one locked in the back of the mind....

Thanks again everyone!
Sueffel
 

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