Workshop

IOTA^_^    

Sams Teach Yourself ASP.NET in 21 Days, Second Edition
By Chris Payne
Table of Contents
Day 20.  Debugging ASP.NET Pages


This workshop will help reinforce the concepts covered in today's lesson. The answers can be found in Appendix A.

Quiz

1:

Will the following code snippet work?

 try    objCmd.Connection.Open    objReader = objCmd.ExecuteReader end try 
2:

True or False: The finally statement is required in a try...catch block.

3:

What is the trace tool, and how do you enable it at the page level? At the application level?

4:

What's the difference between Trace.Write and Trace.Warn?

5:

True or False: Trace.Write and Trace.Warn print information in the client display.

6:

What are symbol files?

7:

True or False: Attaching a debugger to an application is a perfectly safe procedure and doesn't interrupt program usage.

8:

What's a breakpoint, and what is it used for?

Exercises

1:

Use the trace tool to compare performance times in your application. Determine if disabling viewstate results in faster execution times, what the difference is between using an OleDbDataReader versus a DataSet, and if comments affect execution times at all.

2:

Explore the CLR debugger and step through the execution of several pages. Use the Watch window to watch your variables as your application progresses. Try purposely introducing some errors and see what happens in the debugger.


    IOTA^_^    
    Top


    Sams Teach Yourself ASP. NET in 21 Days
    Sams Teach Yourself ASP.NET in 21 Days (2nd Edition)
    ISBN: 0672324458
    EAN: 2147483647
    Year: 2003
    Pages: 307
    Authors: Chris Payne

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net