Top "Stack-trace" questions

A report of the active stack frames at a certain point in time during the execution of a program.

When I catch an exception, how do I get the type, file, and line number?

Catching an exception that would print like this: Traceback (most recent call last): File "c:/tmp.py", line 1, in <…

python exception stack-trace traceback
Get exception description and stack trace which caused an exception, all as a string

I've seen a lot of posts about stack trace and exceptions in Python. But haven't found what I need. I …

python python-2.7 exception-handling stack-trace
C++ display stack trace on exception

I want to have a way to report the stack trace to the user if an exception is thrown. What …

c++ exception exception-handling stack-trace
Couldn't load memtrack module Logcat Error

I am getting an error Couldn't load memtrack module (No such file or directory) failed to load memtrack module: -2 …

android logcat stack-trace
How to Add Stacktrace or debug Option when Building Android Studio Project

I was trying to investigate the project build error in the console output as follow: :myapp:processDebugResources FAILED FAILURE: Build …

android android-studio stack-trace
How to store printStackTrace into a string

How can I get the e.printStackTrace() and store it into a String variable? I want to use the string …

java stack-trace
Print PHP Call Stack

I'm looking for a way to print the call stack in PHP. Bonus points if the function flushes the IO …

php stack-trace error-logging
How to print the current Stack Trace in .NET without any exception?

I have a regular C# code. I have no exceptions. I want to programmatically log the current stack trace for …

c# .net logging stack-trace printstacktrace
How do I get ruby to print a full backtrace instead of a truncated one?

When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, …

ruby exception stack-trace
How to print full stack trace in exception?

For example, in one place... //---------------a try { // some network call } catch(WebException we) { throw new MyCustomException("some message ....", we); } ...and …

c# exception-handling stack-trace