Link to home
Start Free TrialLog in
Avatar of ipjyo
ipjyoFlag for United States of America

asked on

How to step into the code in visual studio 2005?

hi,
Could anybody let me know how to activate debugging in visual studio? I have already set debug="true" in web.config and also was able to see the values at run time. But suddenly this is not working and the output window is coming without stepping into the code.
And also I am getting an error as shown below but it is doing updates correctly in the database as expected. I am not getting where it is going wrong.
Could anybody please help me? Thanks!

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
 
For more information about HTTP errors, see Help.

Open in new window

Avatar of Daniel Reynolds
Daniel Reynolds
Flag of United States of America image

Set a break point in the page_load method of your startup web page.

When you hit F5 to run in debug mode, it will run to the point you have set the break.

You can set as many breaks as you desire and then examine the values of your variables.
F11 will step thru each line of code.
SOLUTION
Avatar of SaedSalman
SaedSalman
Flag of Jordan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ipjyo

ASKER

Hi Saedsalman,
Thanks for the link provided..now I am not getting that error.

hi xDJR1875,
I have set the breakpoint and pressed F5 but it is not hitting my page at run time but giving the actual output. I was actually able to debug the page till yesterday, but suddenly it stopped working.
Could there be any reason for this kind of behavior? Please let me if you have any idea. Thank you!
Try setting the startup page to another page and set a break point in it.
(right-click on the page in the solution and select Set as start-up)

Then hit F5 to try debug again and see if the new start up page comes up.

This way you can at least start eliminating scenarios if it works for the substitute start up page.
Avatar of ipjyo

ASKER

ok, thank you. I will try and let you know soon.
Avatar of ipjyo

ASKER

I have set up a start page and set a breakpoint and then pressed F5. Stiil getting the same problem.
I am not sure if there is any problem with my visual studio..suddenly debugging stopped working.....
The only other thing I can think of is to be sure your solution configuration is set to Debug and not to Release.
Avatar of ipjyo

ASKER

Thanks, I will try this. I am kind of in confusion where to set the Debug mode. I remember visual studio has a drop down to set it to either debug or release mode. How do we enable the solution configuration? thanks and appreciate your patience regarding this question
That is the drop down. It applies to the solution.
Avatar of ipjyo

ASKER

But I am not seeing any dropdown currently. Do I need to change some settings so it will display the drop down? thanks
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial