stack-trace

How to check which line of a Python script is being executed?

穿精又带淫゛_ 提交于 2021-02-17 20:56:03
问题 I've got a Python script which is running on a Linux server for hours, crunching some numbers for me. I'd like to check its progress, so I'd like to see what line is being executed right now. If that was a C or C++ program then I would just attach to the process with gdb -p <pid> and examine the stacktrace with where . Of course, I can do the same with the Python interpreter process, but I can't see the Python script's line in the stacktrace. So, how can I find out which line of the Python

Getting the StackTrace for a TestCaseResult that Failed in TFS via API

别等时光非礼了梦想. 提交于 2021-02-08 11:39:40
问题 ITestCaseResult has a property " ErrorMessage " The ErrorMessage property has a max size of 527bytes, which is not enough to store weighty Exception structures and unfortunately does not seem to have an appropriate Exception property to store one in. My question is, when a test fails, how do you get the StackTrace? I know its available because the GUI can pull it up in Visual Studio And as you can see the ErrorMessage associated with a ITestCaseResult is cut short. ( If you zoom with your

Getting the StackTrace for a TestCaseResult that Failed in TFS via API

天大地大妈咪最大 提交于 2021-02-08 11:39:11
问题 ITestCaseResult has a property " ErrorMessage " The ErrorMessage property has a max size of 527bytes, which is not enough to store weighty Exception structures and unfortunately does not seem to have an appropriate Exception property to store one in. My question is, when a test fails, how do you get the StackTrace? I know its available because the GUI can pull it up in Visual Studio And as you can see the ErrorMessage associated with a ITestCaseResult is cut short. ( If you zoom with your

Access stacktraces with good performance?

余生长醉 提交于 2021-02-07 03:28:07
问题 We recently applied a caching solution that is used by almost all application modules/components (approx. 50 projects). To get a better understanding which cache operations are executed on the different system "places", we added logging for the currently performed cache operations including a stack trace to exactly know what triggered the cache operation. Our current approach looks like this: We take the stack trace from new Throwable(), filter the irrelevant lines and log the remaining stack

Access stacktraces with good performance?

◇◆丶佛笑我妖孽 提交于 2021-02-07 03:25:47
问题 We recently applied a caching solution that is used by almost all application modules/components (approx. 50 projects). To get a better understanding which cache operations are executed on the different system "places", we added logging for the currently performed cache operations including a stack trace to exactly know what triggered the cache operation. Our current approach looks like this: We take the stack trace from new Throwable(), filter the irrelevant lines and log the remaining stack

How to get a stack trace when C++ program crashes? (using msvc8/2005)

两盒软妹~` 提交于 2021-02-06 11:55:50
问题 Sometimes my c++ program crashes in debug mode, and what I got is a message box saying that an assertion failed in some of the internal memory management routines (accessing unallocated memory etc.). But I don't know where that was called from, because I didn't get any stack trace. How do I get a stack trace or at least see where it fails in my code (instead of library/ built-in routines)? 回答1: If you have a crash, you can get information about where the crash happened whether you have a

How to get a stack trace when C++ program crashes? (using msvc8/2005)

别来无恙 提交于 2021-02-06 11:55:11
问题 Sometimes my c++ program crashes in debug mode, and what I got is a message box saying that an assertion failed in some of the internal memory management routines (accessing unallocated memory etc.). But I don't know where that was called from, because I didn't get any stack trace. How do I get a stack trace or at least see where it fails in my code (instead of library/ built-in routines)? 回答1: If you have a crash, you can get information about where the crash happened whether you have a

How can I jump to a frame in a stack trace according to the function name in gdb?

和自甴很熟 提交于 2021-02-06 09:46:10
问题 I'm debugging a stack overflow due to infinite recursion. The program fails when the stack is 700 calls deep. I want to jump to the frame in which the function was initially called. However, gdb shows me the stack trace from the top of the stack about 20 entries at a time, and I wonder if I can somehow skip straight to the calling function without looking through the stack trace to find its number. To that end, I want to be able to jump to a stack frame based on its name instead of its number

Can I get the instance of the calling object in Java?

不打扰是莪最后的温柔 提交于 2021-02-04 17:59:05
问题 There's a library which calls my method with a few arguments. I'd like to receive another argument, but the library doesn't provide it to the method it calls. By decompiling the library, I can see that it has the argument, and it's assigned to an instance variable (not private, but not public either.) I know I can get at the variable using reflection if I have the instance, but I don't have the instance, either. Is there a way I can get at the instance? SecurityManager has getClassContext(),

Java / Kotlin / Spring Boot. How can we automatically retrieve parameter values when an exception occurs?

半腔热情 提交于 2021-01-28 11:14:59
问题 Considering that we are using Kotlin , Spring Boot , annotations and other related libraries. If we have a situation in which our code throws an exception, how could we automatically retrieve the method parameters values in the moment of that exception? Can we do this using AOP, Spring Interceptors or other techniques? We would like to have this to enrich our error messages so we could replicate the errors from where they occurred. Please note that we are searching for a solution that we don