all groups > visual studio .net debugging > july 2003 >
You're in the

visual studio .net debugging

group:

Debug with Host Headers


Debug with Host Headers PJ
7/26/2003 8:22:52 PM
visual studio .net debugging:
I need to be able to debug my application through host headers that I have
set up in IIS and my local hosts file. When debugging starts, the url IE is
sent to is:

//localhost/myapp/mychosenstartpage

Is there a way to debug with a host header? Something like:

//myapp.com

TIA~ PJ

RE: Debug with Host Headers micfor NO[at]SPAM online.microsoft.com
7/31/2003 6:53:17 PM
--------------------
| From: "PJ" <pjwal@hotmail.com>
| Subject: Debug with Host Headers
| Date: Sat, 26 Jul 2003 20:22:52 -0700
| Newsgroups: microsoft.public.vsnet.debugging
|
| I need to be able to debug my application through host headers that I have
| set up in IIS and my local hosts file. When debugging starts, the url IE
is
| sent to is:
|
| //localhost/myapp/mychosenstartpage
|
| Is there a way to debug with a host header? Something like:
|
| //myapp.com
|
| TIA~ PJ


PJ:
Can you tell me more about your scenario and what you have tried? What type
of project is it? Have you verified that web site is accessible via your
webrowser? If the web browser can't find it the debugger won't either. You
would also need to set up your chosen page as the default to only need the
host header name to access it as you indicate above. If not then somthing
like //myapp.com/myapp/mychosenstartpage should work.

I tried to replicate the scenario you describe. But I couldn't even get the
web browser to find the site by the new name.

Assuming you do have that working and can access it from your web browser
you should be able to change URL in the Debugging Properties page for your
project and I think it should work. I am still trying to verify that though
(i.e. whether or not it is a supported scenario.)

Mike Forkey
Visual C++ Team
Legal stuff: This posting is provided AS IS with no warranties, and confers
no rights.
AddThis Social Bookmark Button