We help IT Professionals succeed at work.

Cant debug code on run time

I am trying to debug the code on the runtime but my code is not stopping on any breakpoint I set in my code

Thanks
Comment
Watch Question

Dirk HaestProject manager
CERTIFIED EXPERT

Commented:
Do you have your configuration on debug and not on release ?

Right click on your project-file: properties
On the tab "configuration properties", the combobox above should have debug

Author

Commented:
Actually I am using the website not the project is this the reason?
Dirk HaestProject manager
CERTIFIED EXPERT

Commented:
Yes, you'll have to start from your project, otherwise you can't debug it !
Project manager
CERTIFIED EXPERT
Commented:
Design-Time Debugging ASP.NET 2.0 in Visual Studio 2005
http://brennan.offwhite.net/blog/2006/08/30/design-time-debugging-aspnet-20-in-visual-studio-2005/

Lesson 5: Debugging and Tracing Your Website
http://www.asp.net/learn/videos/video-10.aspx

Author

Commented:
can I change my web site to project or is their anyway to do debug in the website?
Dirk HaestProject manager
CERTIFIED EXPERT

Commented:
If you open your project, then you can run the website locally and debug it.

Or do you mean: I deployed the website and there is an error on the live-environment (and not locally), and I want to debug that ... (probably not possible to do that)

Author

Commented:
yes i have error and i want to put the breakpoints and then debug it on run time is it possible in website?
Dirk HaestProject manager
CERTIFIED EXPERT

Commented:
Can't you debug your website (project) locally to track the bug ?
Dirk HaestProject manager
CERTIFIED EXPERT

Commented:
How to implement remote debugging in Visual Studio 2005
http://support.microsoft.com/kb/910448

How to: Set Up Remote Debugging
http://msdn2.microsoft.com/en-us/library/bt727f1t(VS.80).aspx

Author

Commented:
Actually what happen is that I have created a new web site in my visual studio 2005 by going in to the File menu and clicking on the new website option after I have created some pages I am getting errors in on of the page and I like to debug it locally, like i like to put the break point in one place and then press f5 and then debug the code line by line

I hope its helps

Thanks
Dirk HaestProject manager
CERTIFIED EXPERT

Commented:
Do you have your configuration on debug and not on release ?

Right click on your project-file: properties
On the tab "configuration properties", the combobox above should have debug

Explore More ContentExplore courses, solutions, and other research materials related to this topic.