Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

i have a send mail functionality in my code. when i debug code and break point comes to send button click event and i click on stop debug it closes the browser but still it sends the mail.

once i stop the debugging then why it is executing the code?

thanks,
kk
Posted
Comments
[no name] 26-Sep-13 10:39am    
How would you suppose that we can see your code to be able to tell you?
kk2014 27-Sep-13 4:37am    
Hi Phantom,

have u read my post carefully? if you do so then i have also written "once i stop the debugging then why it is executing the code?".

this is simple thing if i have not pasted the code then also you can give the answer. right?

thanks

1 solution

Just drag the debugger on the line after your Send Email code. It won't be executed, then press F5 or stop the debugger.

Cheers :)
 
Share this answer
 
Comments
kk2014 27-Sep-13 4:34am    
Hi Asif,

i know that but please read my question again. i want to know if i stop debugging then rest of the code should not execute. then why it is executing?

thanks,
krunal

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900