Suddenly Debugging Won't Work?

  • Thread starter Thread starter Fred Nelson
  • Start date Start date
F

Fred Nelson

Hi:

I'm working away on my VB.NET web application and suddenly I find that I
can't set breakpoints for debugging any longer - I should say that I can
set them and that they are ignored.

I've checked all the obvious things - If anyone has any ideas as to
what's wrong I would appreciate hearing!

Thanks very much!

Fred
 
are you in debug mode? because they will be ignored in release mode...
 
Brian:

Yes - I am in debugging mode - both the project and the debug button
show. Also, my other projects are all working fine - just this one that
ignores all break points.

Thanks,

Fred
 
what type of project is it? web, class lib, smart device, winforms?
 
whoops sorry, didnt realize it said web app in your first post... in your
web.config is debug = "true" or "false"? if it is false then it will ignore
break points
 
Brian:

Yes - Debug is ste to "true" in the web.config and I'm running in debug
mode. I set break points in the code and they are COMPLETELY ignored -
very strange.

I'm thinking I might create a new project - copy all the code - and add
each page as an existing item to a new project if I don't find something
soon!?

I've been working with .NET for a year and I have never had this problem
until tonight!

Thanks so much again!

Fred
 
Eduardo:

I tried that - same thing!

Also, I have noticed that if I click a breakpoint I get the usual "red
dot" on the left side of the code window. When I run the program in
debug mode the line disapears and the break is ignored. When I
terminate the program the dot reappears.

I have tried many forms in the same project - I can't set a break anywhere.

If you have any ideas they will be greatly appreciated! Its Monday!

Thanks,

Fred
 
Eduardo:

If it helps to figure this out - I created a new VB.NET web app and
copied one of my pages to it. Debugging works just fine for that page
in the new application - so there must be some setting somewhere that
prevents debugging.

Thanks,

Fred
 
I didn't see the beginning of this thread, so this might have been mentioned
before. If so, sorry. Is the Solution Configuration combo on the toolbar set
to Release? If it is, then you won't be able to debug. Set it to Debug and
that should fix the problem. If this was already mentioned, then just ignore
this message.

Matt
 
Matt:

YOU ARE MY HERO!

I would swear that I checked that a dozen times last night - I took
another look and while the "active solution" was set to debug, the
project was indeed set to "release".

Changing the project setting has caused debug to work just fine once again!

Thanks VERY VERY much!

Fred
 
I have same experince and just reload the project then It stops at
breakpoints again
 
ah so it was what i thought it might be :)


Fred Nelson said:
Matt:

YOU ARE MY HERO!

I would swear that I checked that a dozen times last night - I took
another look and while the "active solution" was set to debug, the project
was indeed set to "release".

Changing the project setting has caused debug to work just fine once
again!

Thanks VERY VERY much!

Fred
I didn't see the beginning of this thread, so this might have been
mentioned
before. If so, sorry. Is the Solution Configuration combo on the toolbar
set
to Release? If it is, then you won't be able to debug. Set it to Debug
and
that should fix the problem. If this was already mentioned, then just
ignore
this message.

Matt
Eduardo:

I tried that - same thing!

Also, I have noticed that if I click a breakpoint I get the usual "red
dot" on the left side of the code window. When I run the program in
debug mode the line disapears and the break is ignored. When I
terminate the program the dot reappears.

I have tried many forms in the same project - I can't set a break
anywhere.

If you have any ideas they will be greatly appreciated! Its Monday!

Thanks,

Fred


Eduardo A. Morcillo [MS MVP VB] wrote:

Try restarting the server.
 
Brian:

Yes - you are a HERO also - I was not aware that the "release/debug"
could be set on the run button. I had checked the project settings and
it looked fine to me.

This is a lesson I will never forget!

Thanks for your help!!!

Fred



Brian said:
ah so it was what i thought it might be :)


Matt:

YOU ARE MY HERO!

I would swear that I checked that a dozen times last night - I took
another look and while the "active solution" was set to debug, the project
was indeed set to "release".

Changing the project setting has caused debug to work just fine once
again!

Thanks VERY VERY much!

Fred
I didn't see the beginning of this thread, so this might have been
mentioned
before. If so, sorry. Is the Solution Configuration combo on the toolbar
set
to Release? If it is, then you won't be able to debug. Set it to Debug
and
that should fix the problem. If this was already mentioned, then just
ignore
this message.

Matt


Eduardo:

I tried that - same thing!

Also, I have noticed that if I click a breakpoint I get the usual "red
dot" on the left side of the code window. When I run the program in
debug mode the line disapears and the break is ignored. When I
terminate the program the dot reappears.

I have tried many forms in the same project - I can't set a break

anywhere.


If you have any ideas they will be greatly appreciated! Its Monday!

Thanks,

Fred


Eduardo A. Morcillo [MS MVP VB] wrote:


Try restarting the server.
 

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

Similar Threads


Back
Top