stack-trace

How to print a stack trace in NodeJS?

Does anyone know how to print a stack trace in nodejs? ...

make maven's surefire show stacktrace in console

Id like to see stacktrace of unit tests in console, does surefire support this? ...

use callback function to report stack backtrace

Assume I have the following: typedef struct { char *name; char binding; int address; } Fn_Symbol //definition of function symbol static Fn_Symbol *fnSymbols; //array of function symbols in a file statc int total; //number of symbol functions in the array and file static void PrintBacktrace(int sigum, siginfo_t ...

How to get stack trace of a running process from within a Visual Studio add-in?

I am writing a Visual Studio add-in in C# which will run while I am debugging a process in the same Visual Studio window and I need access to that the process' stack trace from within my add-in. I tried putting this code into my add-in but it returns the add-in's stack trace, not the process I am debugging. System.Diagnostics.StackTrac...

Get crashing application stack trace

Is there any program that anyone knows off (not a debugger) that will produce a stack trace of a crashing application? The application crash can be simulated at will on a server on which I cannot necessarily install a debugger. That's why the question if there's no other way to get a stack trace so I can then have a look. ...

R: How to get a stack trace from the snow package

How can I get a stack trace back from a snow node after an error occurs? I'm getting errors when I use parSapply that do not occur when I use sapply. Snow is nice enough to give me the error message but it would be much more useful for me to have the kind of stack trace you can get from traceback(). So far I have tried: options(showWarn...

StackWalk64 stops at KiUserDispatchException

Hello. I have a process that crashes, and a dll it loads sets an UnhandledExceptionFilter called win32UnhandledExceptionFilter. Inside my function, I create a new process and call WaitForSingleObject on its handle. In my new process, I get the pid of the old process, attach to it and try capturing a stack trace with StackWalk64: ZeroM...

(Unknown Source) in Exception stack trace

Background This question is related to Why does String.valueOf(null) throw a NullPointerException? Consider the following snippet: public class StringValueOfNull { public static void main(String[] args) { String.valueOf(null); // programmer intention is to invoke valueOf(Object), but instead // code in...

Is stacktrace information available in .NET release mode build?

If I choose release mode to build a dll, is the stacktrace information still available? If so, then what information is unavailable in release mode? ...

How it's better to invoke gdb from program to print it's stacktrace?

Now I'm using function like this: void print_trace() { char pid_buf[30]; sprintf(pid_buf, "%d", getpid()); char name_buf[512]; name_buf[readlink("/proc/self/exe", name_buf, 511)]=0; int child_pid = fork(); if (!child_pid) { execlp("gdb", "gdb", "-batch", "-n", "-ex", "set pagination off", "-ex"...

Silencing cucumber stack trace

Does anybody know how to silence or filter lines from the backtrace of a cucumber run? Im running a rails 2.3.5 App with the database_cleaner plugin set to truncate after each scenario. And every time one runs, the terminal gets flooded with useless "NOTICE truncate cascades.. blah blah" message. I've tried using the config/initializers...

Is there a way to trigger a stacktrace whenever a particular logger is used?

I'm currently trying to track down the source of some lazy loading calls in hibernate, and the easiest way to do so would be to turn on hibernate SQL logging whenever the lazy loading is going to occur and then ideally trigger a stack trace output whenever the logger is used. Right now I'm using Hibernate 3.5.2 which uses SLF4j and usin...

how to write a Python debugger/editor

Sorry for the kind of general question. More details about what I want: I want the user to be able to write some Python code and execute it. Once there is an exception which is not handled, I want the debugger to pause the execution, show information about the current state/environment/stack/exception and make it possible to edit the co...

How to get a stack trace in .NET in normal execution?

In VB .NET, I know I can get a stack trace by looking at the value of ex.StackTrace when handling an exception. How can I get the functions on the stack when I am not handling an exception? I am looking to implement a logging system of some sort to record the steps the user takes prior to a crash to assist in debugging. ...

Log4j formatting: Is it possible to truncate stacktraces?

I want to log only the first few lines of Exceptions in my program. I know, I can do something like this to print only the first 5 lines of a stacktrace: Throwable e = ...; StackTraceElement[] stack = e.getStackTrace(); int maxLines = (stack.length > 4) ? 5 : stack.length; for (int n = 0; n < maxLines; n++) { System.err.println(stac...

Can't get Zend pdf show in browser

Hi, I've got a strange problem with zend pdf, I just can't get the pdf to show in my action i've got this code: $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $pdf = new Zend_Pdf('path/to/file.pdf'); $this->getResponse()->setHeader('Content-type', 'application/x-pdf', true); $this->getResponse(...

Problem with Environment.StackTrace

On a thread that is processing new data in the system, if the data is invalid I write a message in the event log, containing the Environment.StackTrace information. Writing in the event log throws an exception with no text message Message: CallStack - at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at ...

Stack trace bug aggregation software

I develop mobile applications for a variety of platforms, notably iPhone and Android. Each of these applications has a way to "phone home" with fatal crash stack traces. Up to now, we've been inspecting these by hand as needed. What I'm looking for is a piece of software that can somewhat accurately "aggregate" or "coalesce" all these...

c++ stack trace from unhandled exception?

This question has been asked before and there have been windows-specific answers but no satisfactory gcc answer. I can use set_terminate() to set a function that will be called (in place of terminate()) when an unhandled exception is thrown. I know how to use the backtrace library to generate a stack trace from a given point in the progr...

How do I get the stack trace from an Exception Object in Python?

How can I get the full stack trace from the Exception object itself? Consider the following code as reduced example of the problem: last_exception = None try: raise Exception('foo failed') except Exception as e: last_exception = e # this happens somewhere else, decoupled from the original raise print_exception_stack_trace(last_...