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. Advertising

  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. Advertising

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:
    838
    Richard Grimes [MVP]
    Oct 27, 2003
  2. Matthias S.
    Replies:
    1
    Views:
    635
    Daniel Fisher\(lennybacon\)
    Nov 30, 2005
  3. Mark Space

    Printing a stack trace

    Mark Space, Jul 11, 2006, in forum: Java
    Replies:
    5
    Views:
    21,670
    Ingo R. Homann
    Jul 11, 2006
  4. Jiho Han
    Replies:
    0
    Views:
    502
    Jiho Han
    Aug 22, 2006
  5. =?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:
    580
    =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=
    Apr 6, 2007
Loading...

Share This Page