stack-trace

How to get the full stacktrace of a StackOverflowError without restarting the application

╄→гoц情女王★ 提交于 2021-01-28 11:14:31
问题 I currently hava a running Java application, which has a bug. I don't know how to fully reproduce it and it didn't happen for weeks until now. When it occurs one times, I can reproduce it over and over again easily until I restart the application. The bug causes a StackOverflowError because of a recursion and I don't know how this happens. The printed stacktrace of the StackOverflowError isn't helpful because it contains only the repeating part, but not the more insteresting initial part,

how to write a Python debugger/editor

本小妞迷上赌 提交于 2021-01-28 08:53:59
问题 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 code . I only want to have the special code block editable where the exception occurred and nothing else (for now). I.e. if it occurred inside a for loop, I only

StackTrace: how to show only my code?

不打扰是莪最后的温柔 提交于 2021-01-28 05:18:44
问题 For debugging purposes I store exception's stack trace to log file in my ASP.NET application. But in most of cases it contains a looot of redundant information: stack trace of ASP.NET's core before my routines and System calls after. Is there any way to trim this unrelevant, not in my assembly information from StackTrace object I create from Exception? I'm interested only in chunk of frames inside of whole trace. Thank you. Denis. 回答1: One way would be to create a StackTrace object, get the

How to check if a Java Class is part of the current stack trace?

北慕城南 提交于 2021-01-27 21:20:52
问题 I have a class: MessageReceiver.java that receives messages but can also produce messages indirectly (that then could potentially be redelivered to this class). I don't want to process messages that were sent with MessageReceiver.java in the stack trace. Is there a way to efficiently determine if the message I received was from MessageReceiver.java? The following chain is possible: MessageReceiver.java -> OtherClass.java -> MessageProducer.java -> MessageReceiver.java 回答1: I think this is

Spring Boot Custom Error Page Stack Trace

China☆狼群 提交于 2021-01-27 09:06:20
问题 I have found on several locations how to use Spring boot to make a custom error page but I cannot seem to figure out how to make it show a stack trace. This is what I have: @Bean public EmbeddedServletContainerCustomizer containerCustomizer() { return new EmbeddedServletContainerCustomizer() { @Override public void customize(ConfigurableEmbeddedServletContainer container) { ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/WEB-INF/jsp/app/404.jsp"); ErrorPage error500Page = new

Spring Boot Custom Error Page Stack Trace

依然范特西╮ 提交于 2021-01-27 09:01:19
问题 I have found on several locations how to use Spring boot to make a custom error page but I cannot seem to figure out how to make it show a stack trace. This is what I have: @Bean public EmbeddedServletContainerCustomizer containerCustomizer() { return new EmbeddedServletContainerCustomizer() { @Override public void customize(ConfigurableEmbeddedServletContainer container) { ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/WEB-INF/jsp/app/404.jsp"); ErrorPage error500Page = new