urgent - breakpoint will not currently be hit?

  • Thread starter Thread starter goldie11
  • Start date Start date
G

goldie11

Hi Everyone,

I don't know why - but suddenly when I put breakpoints on
some pages of my application, the breakpoints change into empty circle
with some exclamation icon on the right bottom of the circle and that
says:

"The breakpoint will not currently be hit. The source code is
different from
the original version."

I rebuilt the project a few times. I deleted the obj directory
(I tried also deleting the bin directory but I got errors)

Mayby someone has an idea??
I searched the forum but so far - nothing solved it.

Thanks so much.

Ruthie.
 
You are probably still debugging and have put a break point on some code
that was not in your application when you started debugging. Stop debugging
and all will be well.


Peter
 
Dear Peter,

I followed your advice.
I deleted all breakpoints and then I rebuilt the application and put
one breakpoint.
But I still have the same problem.

Any idea?

Thanks for your help.
Regards,
Ruthie.
 
Any idea?

Are you trying to set the breakpoint in the current application's file or in
a referenced assembly's file?
 
Dear Sergey,

I put the breakpoint in the application file.

Thanks.

Ruthie.
 
I put the breakpoint in the application file.

Is this situation possible?

1. You have added a *.cs file from external directory using "Add existing
item...." command (the file had been copied to your project's folder).
2. You are trying to set the breakpoint to the external file.
 
Is this situation possible?

1. You have added a *.cs file from external directory using "Add existing
item...." command (the file had been copied to your project's folder).
2. You are trying to set the breakpoint to the external file.

Dear Sergey,

Another problem that I encounter is that code which I commented is
still being executed when I run the application.
So, it seems that the compilation of the project doesn't succeed even
though when I complie I get success message.
So - its too much time that I spent already trying to investigate
these problems so I am going to open a new project and start again.

Thanks for your help.
Regards,
Ruthie.
 
Another problem that I encounter is that code which I commented is
still being executed when I run the application.

Well, really, you still have the same problem, I guess - you are working
with one source file, the application - with an another. I hope you won't
meet this problem in the new project.
 
Back
Top