Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
170 views

struct StackFrame { DWORD64 address; std::string name; std::string module; std::string filename; int line_number; }; std::vector<StackFrame> GetStackTrace(CONTEXT context) { ...
Hari E's user avatar
  • 490
0 votes
1 answer
89 views

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 ...
user avatar
0 votes
1 answer
271 views

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 ...
roesslerj's user avatar
  • 2,661
1 vote
1 answer
4k views

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"> ...
bcgilmartin's user avatar
0 votes
0 answers
228 views

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()"...
Gsatish Kumar's user avatar
2 votes
1 answer
293 views

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 ...
Makogan's user avatar
  • 9,991
-1 votes
2 answers
244 views

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 { ...
Tara's user avatar
  • 3
1 vote
1 answer
1k views

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?
jil123's user avatar
  • 109
-1 votes
1 answer
785 views

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 ...
Math Err's user avatar
16 votes
4 answers
3k views

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 ...
reducing activity's user avatar
1 vote
1 answer
356 views

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.
Parveen Verma's user avatar
-2 votes
2 answers
3k views

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 { } ...
dani.tudi97's user avatar
0 votes
3 answers
189 views

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 ...
Ankit Vashistha's user avatar
0 votes
0 answers
755 views

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....
user3758745's user avatar
  • 1,037
2 votes
2 answers
759 views

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 ...
Silence's user avatar
  • 156
3 votes
1 answer
3k views

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) { ...
Mike76's user avatar
  • 989
0 votes
0 answers
138 views

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 ...
that guy's user avatar
0 votes
2 answers
2k views

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 ...
Ranganath Samudrala's user avatar
6 votes
1 answer
6k views

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)...
JaskeyLam's user avatar
  • 15.8k
1 vote
1 answer
653 views

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 ...
Sri Nithya Sharabheshwarananda's user avatar
0 votes
3 answers
404 views

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.
Scorpion's user avatar
  • 587
0 votes
1 answer
71 views

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, ...
user3210906's user avatar
36 votes
8 answers
60k views

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 ...
Thufir's user avatar
  • 8,575
13 votes
6 answers
6k views

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 ...
sebi's user avatar
  • 1,861
2 votes
4 answers
3k views

I am developing an android app using eclipse. How to see printstacktrace's output?
ankit rawat's user avatar