|
-
February 23rd, 2009, 04:22 PM
#1
Breakpoint is not working in my website (asp.net 2.0)??
Hi,
Can anyone tell me why breakpoint is not hitting in my website. I am using visual studio 2005 and trying to write code in C# (asp.net 2.0).
Its a simple code to see whether breakpoint is work or not. I am just trying to print text entered in a textbox when i click on a button. when i run below code and click on button after entering the text in textbox it is displaying it on label instead of taking me to the line where i inserted the breakpoint!!
protected void Button1_Click(object sender, EventArgs e)
{
String mystring;
mystring = TextBox1.Text;
Label1.Text = mystring;
}
point to notice is that, when i tried writing C++ programs in the same VS2005, breakpoints worked fine without any problem.
Can anyone please tell me what i am doing wrong?
Thanks
Kkrish
-
February 24th, 2009, 12:53 AM
#2
Re: Breakpoint is not working in my website (asp.net 2.0)??
The code is running on the client, so there's no value it being able to break execution. Theres nothing that you'd want the client to do
-
February 24th, 2009, 09:42 AM
#3
Re: Breakpoint is not working in my website (asp.net 2.0)??
are you running the application? try using F5 to build & run.
breakpoints do work in ASP.Net.
-
February 24th, 2009, 10:05 AM
#4
Re: Breakpoint is not working in my website (asp.net 2.0)??
eclipsed4utoo....I tried f5....it didnt work!
dglienna....do you think that breakpoint will work if i write different code!!....but in my application, client should enter text in the text box and click on the button-------then the breakpoint should get called(this is where i placed breakpoint)---so...what's wrong?
-
February 25th, 2009, 09:49 AM
#5
Re: Breakpoint is not working in my website (asp.net 2.0)??
in your web.config file, check to see if you have this...
Code:
<system.web>
<compilation debug="true">
.........
.........
.........
</system.web>
-
February 25th, 2009, 12:55 PM
#6
Re: Breakpoint is not working in my website (asp.net 2.0)??
 Originally Posted by eclipsed4utoo
in your web.config file, check to see if you have this...
Code:
<system.web>
<compilation debug="true">
.........
.........
.........
</system.web>
yup...it is set to true in web.config
-
February 25th, 2009, 05:29 PM
#7
Re: Breakpoint is not working in my website (asp.net 2.0)??
Are you compiling to release mode?
I can't remember if that prevents attaching the debugger to the code, but I do believe it causes problems at least.
And sorry for asking the obvious - you aren't trying to debug the site from another server, meaning you want to debug locally the deployed solution?
-
February 26th, 2009, 08:30 AM
#8
Re: Breakpoint is not working in my website (asp.net 2.0)??
 Originally Posted by Alsvha
Are you compiling to release mode?
I can't remember if that prevents attaching the debugger to the code, but I do believe it causes problems at least.
And sorry for asking the obvious - you aren't trying to debug the site from another server, meaning you want to debug locally the deployed solution?
compiling and running in release mode does not prevent debugging.
to the OP, when you hit F5, what happens? Does it build and a new window of Internet Explorer popup?
-
February 26th, 2009, 08:50 AM
#9
Re: Breakpoint is not working in my website (asp.net 2.0)??
 Originally Posted by eclipsed4utoo
compiling and running in release mode does not prevent debugging.
to the OP, when you hit F5, what happens? Does it build and a new window of Internet Explorer popup?
yes, a new window of IE pops up....i enter text in the text box and hit the button but instead of showing me the execution i.e. taking me to the line where i placed breakpoint....prints the text in the label
-
February 26th, 2009, 08:54 AM
#10
Re: Breakpoint is not working in my website (asp.net 2.0)??
 Originally Posted by Alsvha
Are you compiling to release mode?
I can't remember if that prevents attaching the debugger to the code, but I do believe it causes problems at least.
And sorry for asking the obvious - you aren't trying to debug the site from another server, meaning you want to debug locally the deployed solution?
nope....i am compiling in debug mode.
yes....i am running this program on my laptop...both client and server on same machine....
-
May 21st, 2009, 06:41 AM
#11
Re: Breakpoint is not working in my website (asp.net 2.0)??
Press F5 to start in debugging mode,
and then go to debug -> Attach to Process and select WebDev.WebServer.EXE,
now refresh the page and go ahead with debugging.
Raghavendra Padanad
mail_id: [email protected]
Last edited by raghavendrap; May 21st, 2009 at 06:41 AM.
Reason: spell check
-
May 27th, 2009, 09:53 AM
#12
Re: Breakpoint is not working in my website (asp.net 2.0)??
 Originally Posted by raghavendrap
Press F5 to start in debugging mode,
and then go to debug -> Attach to Process and select WebDev.WebServer.EXE,
now refresh the page and go ahead with debugging.
Raghavendra Padanad
mail_id: [email protected]
this should be done automatically. I know it does for me.
if the OP reads this, right click on your web project, then go to Properties. Go to the "Web" tab, and make sure the "ASP.Net" is checked in the "Debuggers" section.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|