Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breakpoints not working

Status
Not open for further replies.

R7Dave

Programmer
Oct 31, 2007
181
US
Hello

I am using Visual Web Developer 2005 Express Edition and my breakpoints are not working. I verified this by putting a breakpoint at each line of a sample .aspx page in a new project (code used below). I tried resarting - no luck.

Is there a setting to enable this or is this a bug? Any suggestions?

Thanks
Dave

Partial Class _1
Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Text = "OK"
Dim s As String
s = "Not Ok"
Button1.Text = s
End Sub
End Class
 
In the web.config you have to set compilation debug mode to true in the system.web section:

Code:
<system.web>

<compilation debug="true">
 
Hello

I added that but it did not work.

Thanks
Dave
 
How are you firing up your application - are you hitting the Start Debugging button (debug menu)?
 
i was pressing F5 - but this is how I've always done it and breakpoints would work.

Thanks
Dave
 
I made a mistake - I'm right clicking the page and selecting "View in Browser" and the breakpoints don't work but they do if I set the start page and press F5 (Start Debugging) I didn't know that made a difference - thank you for your help.

Dave
 
No problem - I think when you 'view in browser' visual studio doesn't attach to the process.

Regards

Matt
 
If you are going to right click and view in browser, then you will have to attach to the asp worker process(aspnet_wp.exe) off of the debug menu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top