Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 319645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:40:49+00:00 2026-05-12T08:40:49+00:00

I have a live web application that is failing in one specific scenario, and

  • 0

I have a live web application that is failing in one specific scenario, and locally it works fine. I don’t have remote debugging setup, and I want to check the value of some of the variables in the code. What would be the fastest way for me to log/email/debug the code to view those values?

Just to be clear, there is no error/exception being thrown. Something is different, and its causing the application to give unexpected results.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:40:50+00:00Added an answer on May 12, 2026 at 8:40 am

    The fastest way is to simply implement some logging in the Application_Error event within your Global.asax file. If you do not have a Global.asax file, simply create one with the VS New File wizard and it’ll handle that event for you.

    It won’t help you get to local variables at the scope of the error, but you can log global variables from there and at least get some feedback on what the error is.

    EDIT: In response to your comment, I recommend you output your Trace data to a file that you can analyze. I haven’t tried this myself, but I’ve seen it recommended. To your web.config, add something called a TraceListener like so:

    <system.diagnostics>
    <trace autoflush="true">
    <listeners>
    <add name="TestTracer"
    type="System.Diagnostics.TextWriterTraceListener, System,
    Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    initializeData="<app root directory>\Asptesttrace.log" />
    </listeners>
    </trace>
    </system.diagnostics>
    

    You’re going to need to play around with it locally, I’m sure. For instance, make sure the trace is not visible to the client (this may involve using the Trace class to turn the trace on or off, and changing the streams it writes to).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At work we have a pretty large web application that works by having a
I have a web application that relies on very live data - so it
We have two applications running on single machine,one of which is web application that
i have a web application that is build as single page. Through one user
I have a Java Web Start Application that I launch from live site by
I have a C# Windows Service and an ASP.NET 4.0 web application that are,
I have a ASP.NET Web Forms application that internally makes many SOAP and REST
Consider that you have System_A which is a web application. And System_A has simply
I have a web application that has been up and running for quite some
I have a web application that needs to be built using PHP/MySQL. The application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.