stack-trace

How can we take minidump during exceptions

Hi All, I am working on a sub project(.NET) which deals with exceptions. Below is my requirement When an exception occurs, the exception assembly must capture CPU information Method which caused the issue Data which caused the issue Environment details (path and other information) In above all these, the toughest part would be ge...

How to get a stack trace object in Ruby?

I need to get a stack trace object in Ruby; not to print it, just to get it to do some recording and dumping for later analysis. Is that possible? How? ...

Clickable stack trace from Visual Studio's Output pane?

A stack trace has appeared in the Output pane of my VS2010. Is there an extension/etc that will make that stack trace clickable (to navigate to the relevant code)? ...

Explorer 7 is stuck on 100% CPU / got stack trace

I surf to a web page (the web page belong to my company...) and my explorer is stuck on 100% (desktop, windows XP, 1.5G, IE7, SP3) I'm not sure I have all the pdb and the information needed but the call stack from analyzed dmp file in dbg is below - does it look familiar msls31!InitGroupChunkExt+0x11a msls31!InitGroupChunkExt+0x25e ...

Getting more detail from stack traces

Is there a convenient way to get a more detailed stack trace on a Python exception? I'm hoping to find a wrapper utility/module or some other way to get a bit more info from the stack trace without having to actually modify the Python script that generates it. I'd like to be able to use this when running unit tests, or doctests, or whe...

print python stack trace without exception being raised

Something funky is happening with one of my class's instance variables. I want to make the variable a property, and whenever it is accessed I want to print out the stack trace of all the code leading up to that point, so I can see where it's being messed with. How do I print out the stack trace when no exception has been raised? I know i...

What does the second column in the gdb stack trace mean?

I have a stack trace that looks like this: #3 0x00007fffde86c206 in GetMedia (p_ml=0xb91560, id=<value optimized out>, select=ML_MEDIA, reload=<value optimized out>) at ../../../modules/media_library/sql_media_library.c:1170 #4 0x00007fffde86a7d0 in GetInputItemFromMedia (p_ml=0xb91560, i_media=12276000) at ../../../modules/media_libr...

Use C# attribute to track function call, variables, and return value?

In Python, I can use decorators to trace the function call, its variables and return values. It is very easy to use. I just wonder can C# do the same thing? I find out there is a sample code of CallTracing Attribute online. However, it didn't show the result I expected. Does C# attributes have similar concepts as python's decorator? T...

Understanding memory offsets in iphone stack traces

I'm trying to understand what these offsets are in an iphone stack trace: 11 FOO 0x0005684a +[TTURLRequest requestWithURL:delegate:] + 42 12 FOO 0x00056840 +[TTURLRequest requestWithURL:delegate:] + 32 What are the hex numbers 0x0005684a and 0x00056840? What are the numbers +42, and +...

What is a stack trace, and how can I use it to debug my application errors?

Sometimes when I run my application it gives me an error that looks like: Exception in thread "main" java.lang.NullPointerException at com.example.myproject.Book.getTitle(Book.java:16) at com.example.myproject.Author.getBookTitles(Author.java:25) at com.example.myproject.Bootstrap.main(Bootstrap.java:14) People...

How to make gdb get stacktrace repeatably?

Like in for((;;)) { gdb -batch -n -ex 'set pagination off' -ex 'thread apply all bt' ffplay_g `pidof ffplay_g` >> /tmp/qq; } , but faster, without reloading GDB and symbols every time? Backtraces need to be taken by timer, not by triggering some breakpoints. ...

WCF FaultException Without Sending StackTrace

I have some WCF services with predefined FaultContract attributes. When the FaultException<TDetail> exceptions are thrown, they're sending StackTrace, Source and other potentially unsave information. Is it possible to return only: Detail (from the generic TDetail) FaultMessage FaultCode (and possibly) FaultReason ...

Print the name of the calling function to the debug log

Objective-C's runtime seems to be rather robust, so I was wondering if there's a way to log the name of the function that called the current function (for debugging purposes). My situation is that a bunch of things assign to a property, and rather than set a breakpoint and examine the call stack each time, I'd like to just NSLog the nam...