70 questions
2
votes
1
answer
170
views
SymFromAddr fails on AMD Machine with the error message "Attempt to access Invalid address"
struct StackFrame
{
DWORD64 address;
std::string name;
std::string module;
std::string filename;
int line_number;
};
std::vector<StackFrame> GetStackTrace(CONTEXT context)
{
...
0
votes
1
answer
89
views
Why doesn't printStackTrace() print anything?
I am trying to catch errors made by my Android Java project. I am using the code exceptionVar.printStackTrace(), but this doesn't print anything. I was hoping that printStackTrace() would print the ...
0
votes
1
answer
271
views
How to find the location of where a StackTrace is being printed?
We have some mobile apps that use a Spring REST endpoint. Due to some faulty apps, we see occurrences of ClientAbortException on the server. Now the problem is, that this is not logged via the ...
1
vote
1
answer
4k
views
Log4j 2 not logging out %throwable
I want to print the stack trace when logging errors using this basic Log4j log4j2.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
...
0
votes
0
answers
228
views
Stack frame info / Back trace printing inside the program instead of using GDB
we have requirement to "print Back trace info inside the program" if there is issue of SIGSEGV .
Based on set of links provided in stack overflow
I am using "backtrace_symbols_fd()"...
2
votes
1
answer
293
views
What do the colors in backward-cpp mean?
I am using the stack printing library Backward:
https://github.com/bombela/backward-cpp
Which automatically prints a stack trace of the current program when called.
It also colorizes it which is ...
-1
votes
2
answers
244
views
How to provoke an error in my program to display the printstacktrace
How do I provoke an error so that the exc.printStackTrace(System.out); is displayed when I run the program:
public String getName(){
try {
if(haveName()) return Name;
else {
...
1
vote
1
answer
1k
views
How to disable/remove stack trace calls from release app in android?
I want to remove all stack trace calls from my application. Do I need to manually remove them or it can be directly removed from proguard or any other way?
-1
votes
1
answer
785
views
Stack trace function in C
Im trying to write a function in C that identifies the top of the stack and determines the first frame pointer. Then I have a different function that recursively prints the current stack frame and ...
16
votes
4
answers
3k
views
How do I get ruby to print a full backtrace that includes arguments passed to functions?
Sometimes backtrace is enough to diagnose problem. But sometimes reason of crash is not obvious without knowledge what was passed to function.
Getting information what was passed to function that ...
1
vote
1
answer
356
views
How e.printStackTrace result get printed inside logs
I am using wildfly and I am having no idea how all e.printStackTrace statement get printed in server.log file of wildfly.
What is the configuration behind that. Please explain.
-2
votes
2
answers
3k
views
Exception - printStackTrace(Printwriter s) method
I would like to make you think about a tiny problem using the method printStackTrace(PrintWriter s). I need to use it in append mode.
The following example is explaining what I mean:
try {
} ...
0
votes
3
answers
189
views
How to fix the following error in Catch block of Java code?
I have a code snippet which is throwing error when using printStackTrace() under catch block of my code. Following is the code snippet.
try
{
# Debug Code added on 19 Feb ...
0
votes
0
answers
755
views
Stack trace printing to System.out but not System.err
I'm using this class(JSch) that I don't understand completely, but I have a rough idea on how it works. I'm trying to throw an Exception if the exitStatus is not what I want. However, using
e....
2
votes
2
answers
759
views
Perl debugger: Trace variable in stacktrace
With the builtin Perl debugger I am able to print a stack trace. However, I am only interested in a certain variable not a full stack trace of 30k+ lines.
Is it possible to only display executed lines ...
3
votes
1
answer
3k
views
Confusion with e.printStackTrace() in Android
I read here that e.printStackTrace() should not be used to catch exceptions on android.
On another source I read that I should use Log.e() instead of e.printStackTrace():
... catch (Exception e) {
...
0
votes
0
answers
138
views
Not getting javascript exception.stack in IE inside of angular controller
I am building an angular web application and I am wanting to send any javascript exceptions and callstacks from the client to the server for logging. In chrome and firefox I am able to get the ...
0
votes
2
answers
2k
views
EasyMock AssertionError when invoking Logger.error(String, Throwable)
I am seeing assertion error when I include a Throwable while invoking Log4j.error method. I do have Logger.class, PrintWriter.class, AuthenticationException.class in the @PreparateForTest block. I do ...
6
votes
1
answer
6k
views
Why some stacktrace do not have line number in java
I have a bug from my customer and when I look into the log we trace the exception, some of the stacktrace do not have line number:
at xxxx.xxx.xx.x.xx.DayIntervalRule.getInterval(DayIntervalRule.java)...
1
vote
1
answer
653
views
Append stacktrace of caller thread into the new thread being created, for easier debugging
I have frequently faced a problem while debugging.
Sometimes a thread ends throwing an exception.
And the reason of that issue is the caller/starter of the thread.
The caller send incorrect ...
0
votes
3
answers
404
views
Mimic printStackTrace() method in java [closed]
My question Is there is any way to implement a method that works like the printStackTrace()
I don't know how to start doing this indeed , Is that possible ?
Is getStackTrace() is a good choice for me.
0
votes
1
answer
71
views
Printing stack trace including methods that have finished
So, I have this class and I want to print which methods were called. When I run it it prints only trace and main but not method1 and method2. How can I change it so it would print method1 and method2, ...
36
votes
8
answers
60k
views
printStackTrace to java.util.logging.Logger
How do I print the entire stack trace using java.util.Logger? (without annoying Netbeans).
The question should've originally specified staying within Java SE. Omitting that requirment was an error ...
13
votes
6
answers
6k
views
Get stacktrace as string
I'm using Clojure and I want to get my hands on a stack trace that I can log (ideally, i would like to get it as a String).
I see that (.getStackTrace e) returns a StackTraceElement[] but I don't ...
2
votes
4
answers
3k
views
How to use printstacktrace in Java( Eclipse, android)?
I am developing an android app using eclipse. How to see printstacktrace's output?