Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > printing a stack trace ...

Reply
Thread Tools

printing a stack trace ...

 
 
Gernot Hoebenreich
Guest
Posts: n/a
 
      04-01-2005
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
 
Reply With Quote
 
 
 
 
Pete Becker
Guest
Posts: n/a
 
      04-01-2005
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)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ compilers have one stack for local variables and return addresses and then another stack for array allocations on the stack. Casey Hawthorne C Programming 3 11-01-2009 08:23 PM
Printing a stack trace Mark Space Java 5 07-11-2006 07:03 AM
How to redirect output from Diagnostics.Trace to Page.Trace? Matthias S. ASP .Net 1 11-30-2005 09:01 AM
Trace: Can anyone suggest a good tool to catch trace messages? Rukmal Fernando ASP .Net 4 10-27-2003 09:03 PM



Advertisments