• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

Trace events in vb.net code

Hi,
  How can I trace events in VB.NET 2003 code? I would like to know what pages and events that code went through to reach page requested?

Thanks.
0
amitabh04
Asked:
amitabh04
  • 2
1 Solution
 
chapmanjwCommented:
You can enable Tracing and in your code use the Trace.Write() function to make notes to the trace log at the points you need to see.  See http://www.4guysfromrolla.com/webtech/081501-1.shtml for examples.
0
 
amitabh04Author Commented:
Hi,
  Trace is on in web config file but don't see on web page any trace information. The following is the comment in the site that was provided.

"When tracing is enabled you automagically get a plethora of information on the ASP.NET Web page. Information like:

Request Details - Session Id; Request time, type, and encoding; status code, etc.
Trace Information - Page-level ASP.NET messages that you specify via Trace.Write and Trace.Warn.
Control Tree - A listing of the Web controls on the ASP.NET Web page, and how they relate to one another.
Cookies Collection - A listing of all of the cookies.
Headers Collection - A listing of all of the HTTP headers.
Server Variables - A listing of all of the server variables "


Where sould I look at for trace information?

Thanks.
0
 
chapmanjwCommented:
You have to goto the trace page.

After loading your page ( ie. Page.aspx ), replace the page name with Trace.axd. It will pull up you traces.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now