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 922181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:59:15+00:00 2026-05-15T18:59:15+00:00

In VB .NET, I know I can get a stack trace by looking at

  • 0

In VB .NET, I know I can get a stack trace by looking at the value of ex.StackTrace when handling an exception. How can I get the functions on the stack when I am not handling an exception? I am looking to implement a logging system of some sort to record the steps the user takes prior to a crash to assist in debugging.

  • 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-15T18:59:15+00:00Added an answer on May 15, 2026 at 6:59 pm

    Environment.StackTrace gives you a string, but for more detailed information and options, use the StackTrace class.

    To be more specific, check out the constructor options:

    http://msdn.microsoft.com/en-us/library/system.diagnostics.stacktrace.stacktrace.aspx

    If you need the stack trace starting at the caller’s frame (e.g. in a logging function: you don’t want everything to start with MyLogMethod), you should try this one, which takes an int parameter, the number of frames to skip.

    http://msdn.microsoft.com/en-us/library/wybch8k4.aspx

    If you need the stack trace without source information (e.g. if you don’t want to give away information about your source code), try this one:

    http://msdn.microsoft.com/en-us/library/6zh7csxz.aspx

    Hope that helps!

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

Sidebar

Related Questions

I know with .NET we can host wcf service from a console application without
can i know how to work with sitemap path in asp.net is possible examle
i know that .NET String class uses such behaviour, but I can't find any
I want to know if I can create a WebBrowser through code in Vb.NET,
i know that in vb.net you can just do Exit Sub but i would
I know there are lots of tools on the net that can make our
I know the answer for the beta was no ( Can I use .NET
Does anyone know of an ASP.NET guide to implementing OpenID and what information can
i know there are several questions about regex recursion in .net. I can write
How can I bind a key combination to my vb.net application? I know it

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.