2.0 debugging question

T

Tina

I'm a 1.1 developer learning 2.0. I have a book on 2.0 (Murachs upgraders
guide)...

It tells how to use the development server to test my asp.net apps ie. hit
F5 just like we did in 1.1 using IIS.

Then it tells all of the things you can't test using the development server
and says if you want to test using IIS create a virtual directory and then
just put the url into a browser and run your app.

There is something wrong here....

First it's easy to test in the first place with IIS so why use development
server at all.

I obviously want to use IIS all the time in testing like I did in 1.1 but
hitting F5 in 2.0 invokes the (crappy) development server. How can I invoke
IIS and be able to step- through code like I did in 1.1?

Thanks,
T
 
B

Bruno Alexandre

first, click with the right mouse button over a file and set it up as Start
Page

then just press the green "PLAY" button "Start Debuging" or F5

you can use the BreakPoints to pause in a place, and putting the mouse over
a variable you will see it's value at runtime, like window forms.

if you just wanna run the page, just right click in a file and choose "View
in Browser"
 
D

David Hogue

Hi Tina,

What I usually do to debug a page is open a browser and go to the page.
Then in VS go to debug -> attach to process (ctrl + alt + p) and select
aspnet_wp.exe. Then refresh the page.

I did this all the time in 1.1 because I didn't like how F5 worked. In
2.0 this might still start the development server, but you don't need to
use it. The initial page load is to get asp.net started and may not be
necessary once it is running.
 
G

Guest

Tina,
All this stuff is in the MSDN Documentation for VS.NET 2005.
If you right click on a Web Site project in your solution, and choose
Properties,
there is a "Web" tab. In that, you can choose the environment (File-based,
Dev server, or IIS) and you can even create the IIS Vroot.
Peter
 
T

Tina

Peter,
When I right click on my 2.0 web site I see a "Property Pages" selection and
when I choose it I get a dialog box with a treeview (no tabs) and there is
nothing I can find there regarding IIS or file based debugging.

I'm sure your comment that "it's in the docs" is true but the holy grail
with ms docs has always been to find it. I just gave it 20 minutes
searching "debugging" with vs.2005 as the selection - lots of stuff on JIT
debugging and other such subjects but nothing on this subject. Google does a
better job but it would still take an hour to pick it out.

How do I get the dialog with the "Web" tab that you refer to?

Regards,
T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top