ASP breakpoint stepping through lines of code

Last post 04-30-2008 3:03 AM by johram. 4 replies.

Sort Posts:

  • ASP breakpoint stepping through lines of code

    04-08-2008, 6:51 AM
    • Loading...
    • anarine
    • Joined on 02-08-2008, 3:23 PM
    • Posts 18

    hello all, in my class I saw the teacher adding a breakpoint to a line of code ....looks like a red dot next to the code.

    He then began to step through the code line by line, showing us the results of the asp debugging line by line- assignment of variables, etc...

    I tried to do the same but can't get it to step through, please tell me how this is done 

  • Re: ASP breakpoint stepping through lines of code

    04-08-2008, 7:35 AM
    Answer
    • Loading...
    • johram
    • Joined on 06-13-2006, 6:36 AM
    • Sweden
    • Posts 1,865
    • Moderator

    First you need to make sure debugging is enabled in your web app. This can be achieved by setting debug=true in your web.config.

    Once you've done this, it should be fairly easy for you to set a breakpoint somewhere by pressing F9 or by going in the menu Debug->Toggle breakpoint.

    Note that you can only break on valid statements. If you're not on a valid statement, the "toggle breakpoint" option will not be visible/enabled. In this case, try place the cursor on the next line until you get a valid statement to break on.

    Here's a good tutorial on the subject: Debugging with breakpoints in ASP.NET

    If this post was useful to you, please mark it as answer. Thank you!
  • Re: ASP breakpoint stepping through lines of code

    04-08-2008, 7:50 AM
    Answer

    Hi,

    Make sure that your application is debug mode, if the application is in release mode you should change the debug mode.

    In a button click event’s left side of the window you should make single click .after that you can see a red dot

    When the application came to run mode the compiler come to the debugging line after that you can use the following key to debug your site

    F11-to debug each and every line with in whole application

    F10-to debug with in the method or function

    F5- to skip the debug mode

      

     

    With Friendly,
    Thirumaran

    Please remember to click "Mark as Answer" on this post if it helped you
  • Re: ASP breakpoint stepping through lines of code

    04-30-2008, 1:43 AM
    • Loading...
    • yesmebino
    • Joined on 04-30-2008, 5:39 AM
    • Posts 1

      Sorry i cant set break point in my asp.net application .but i can set break point only but it not working thats why i cant get proper error correction i it will make difficult to programming..

    please help me.am using asp.net 2005 and working an acer laptop with windos wista is my OS 

  • Re: ASP breakpoint stepping through lines of code

    04-30-2008, 3:03 AM
    • Loading...
    • johram
    • Joined on 06-13-2006, 6:36 AM
    • Sweden
    • Posts 1,865
    • Moderator

    Can you or can you not set a breakpoint? If you are running the web in IIS, you will have to attach your debugger to the (correct) aspnet_wp.exe process. If you run the web from within Visual Studio (through the built-in web server called Cassini), debugging should work automatically.

    Where in the code are you trying to set your breakpoint?

    If this post was useful to you, please mark it as answer. Thank you!
Page 1 of 1 (5 items)