printing a stack trace ...

Discussion in 'C++' started by Gernot Hoebenreich, Apr 1, 2005.

  1. Hi there,

    Is anybody aware of some method to get a calling stack trace in kind of
    readable string form of a thread in C++ (for tracing/debug purposes), as
    it is available in Java (i.e: printStackTrace())?

    Any advice as well as literature advice is appreciated!

    thanks!
    Gernot
     
    Gernot Hoebenreich, Apr 1, 2005
    #1
    1. Advertisements

  2. Gernot Hoebenreich

    Pete Becker Guest

    Gernot Hoebenreich wrote:
    > Hi there,
    >
    > Is anybody aware of some method to get a calling stack trace in kind of
    > readable string form of a thread in C++ (for tracing/debug purposes), as
    > it is available in Java (i.e: printStackTrace())?
    >
    > Any advice as well as literature advice is appreciated!
    >


    Use a debugger. Unlike Java, C++ doesn't incorporate one into every
    application.

    --

    Pete Becker
    Dinkumware, Ltd. (http://www.dinkumware.com)
     
    Pete Becker, Apr 1, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rukmal Fernando
    Replies:
    4
    Views:
    1,080
    Richard Grimes [MVP]
    Oct 27, 2003
  2. =?Utf-8?B?SmVyZW15?=

    Understanding the Stack Trace

    =?Utf-8?B?SmVyZW15?=, Jan 22, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    6,526
    sassyboy
    Sep 5, 2009
  3. Matthias S.
    Replies:
    1
    Views:
    846
    Daniel Fisher\(lennybacon\)
    Nov 30, 2005
  4. Mark Space

    Printing a stack trace

    Mark Space, Jul 11, 2006, in forum: Java
    Replies:
    5
    Views:
    21,994
    Ingo R. Homann
    Jul 11, 2006
  5. Jiho Han
    Replies:
    0
    Views:
    719
    Jiho Han
    Aug 22, 2006
  6. =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=

    Adding my messages to the trace.axd trace?

    =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=, Apr 6, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    782
    =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
    Apr 6, 2007
  7. Chris Newby
    Replies:
    0
    Views:
    1,005
    Chris Newby
    Jul 28, 2008
  8. Rukmal Fernando

    Trace: Can anyone suggest a good tool to catch trace messages?

    Rukmal Fernando, Oct 10, 2003, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    482
    Richard Grimes [MVP]
    Oct 27, 2003
Loading...