Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to get stack trace

How to get stack trace

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studiodata-structuresdebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LiYS
    wrote on last edited by
    #1

    Hi, I wanted to get a call chain(stack trace) starting from my code extended to a third party library which I don't have the source code access - the type of call chain shown in the exception window in visual studio when an exception occurs. How can I do that? I'm using VSTS 2008. In addition, is there any difference between "call stack" and "stack trace"? Thanks,


    L 1 Reply Last reply
    0
    • L LiYS

      Hi, I wanted to get a call chain(stack trace) starting from my code extended to a third party library which I don't have the source code access - the type of call chain shown in the exception window in visual studio when an exception occurs. How can I do that? I'm using VSTS 2008. In addition, is there any difference between "call stack" and "stack trace"? Thanks,


      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, Environment.StackTrace A "stack trace" is the result of walking on the "call stack" to find methods and line numbers that have lead to the current position. They often are used interchangeably. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.


      L 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, Environment.StackTrace A "stack trace" is the result of walking on the "call stack" to find methods and line numbers that have lead to the current position. They often are used interchangeably. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.


        L Offline
        L Offline
        LiYS
        wrote on last edited by
        #3

        Thanks for the reply. With the method I was able to see the previous stack trace that I can "step into", but when it came to untouchable third party calls in between, it didn't work. Thanks,


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups