locked
start debug debugger displays the localhost -/ directory listing instead of the current page RRS feed

  • Question

  • User1395831461 posted

    I'm using visual studio 2015 community edition blend on a windows 10 machine.  I have a project for which I have the propertiespage/web/startaction set to current page.  When I select the aspx item I want to debug and start debug the debugger displays the the localhost -/ directory listing instead of loading the page I want.  If I select on of the items from the directory listing that item is loaded into debug.

    If I specify a page in the project as being the start page and run debug that page is loaded correctly.

    Can someone kindly explain what I need to do to get the debugger to load my current page instead of displaying the directory listing?

    Thanks tonnes for any help, Roscoe

    Friday, January 6, 2017 8:41 PM

Answers

  • User-2057865890 posted

    Hi Rpfinnimore,

    Do you set the IIS Express as the server in your VS IDE? Do you set the Specific page like the following screen shot?

    • Start Debugging (F5). This option runs the web project in the browser and allows you to perform debugging tasks such as stepping through code and stopping at breakpoints.
    • Start Without Debugging (CTRL+F5). This option runs the web project in the browser without using the debugger. It approximates the user experience.
    • View in Browser (CTRL+SHIFT+W). This option runs a selected page in the browser. Debugging breakpoints are not in effect even if debugging is enabled.

    #Testing Web Pages in Visual Studio

    https://msdn.microsoft.com/en-us/library/df5x06h3(v=vs.110).aspx

    Best Regards,

    Chris

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 9, 2017 6:34 AM

All replies

  • User-2057865890 posted

    Hi Rpfinnimore,

    Do you set the IIS Express as the server in your VS IDE? Do you set the Specific page like the following screen shot?

    • Start Debugging (F5). This option runs the web project in the browser and allows you to perform debugging tasks such as stepping through code and stopping at breakpoints.
    • Start Without Debugging (CTRL+F5). This option runs the web project in the browser without using the debugger. It approximates the user experience.
    • View in Browser (CTRL+SHIFT+W). This option runs a selected page in the browser. Debugging breakpoints are not in effect even if debugging is enabled.

    #Testing Web Pages in Visual Studio

    https://msdn.microsoft.com/en-us/library/df5x06h3(v=vs.110).aspx

    Best Regards,

    Chris

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 9, 2017 6:34 AM
  • User1395831461 posted

    Hi Chris, Thanks for the quick reply.  I'm used to using VS premium in that version if you highlight the tab in the editor with the page you want to debug and start the debugger the highlighted tab is the one that gets debugged.  Looks like the community edition behaves differently that way.  It's kind of inconvenient to have to specify a page as the start page every time you want to debug the page.

    Thanks tonnes for help, Roscoe

    Monday, January 9, 2017 8:29 PM