urgent - breakpoint will not currently be hit?

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.
 
P

Peter Bradley

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
 
G

goldie11

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.
 
S

Sergey Gorbachev

Any idea?

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

=?windows-1255?B?5PTw+CDg4ek=?=

Dear Sergey,

I put the breakpoint in the application file.

Thanks.

Ruthie.
 
S

Sergey Gorbachev

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.
 
G

goldie11

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.
 
S

Sergey Gorbachev

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.
 

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