All Questions
94 questions
0
votes
0
answers
34
views
Can spyder show the call stack while debugging?
While debugging code, it is useful to see the complete call stack.
Moreover, it is useful to be able to navigate it by clicking on the various lines in a displayed list of the call stack.
Many IDEs in ...
3
votes
1
answer
160
views
How to read name of anonymous lambdas in Visual Studio call stack?
It's always been challenging to me to track anonymous lambdas in the call stack, so I wrote some sandbox code in order to deal with the issue:
int main() {
[] {
std::cout << "Hello ...
0
votes
0
answers
102
views
Visual Studio C/C++ : Access to call stack from the code
Is there a way to access to call stack content from the code ?
There are many introspection functions in <crtdbg.h> but none about call stack.
(at least, I didn't find any)
I need some (MSVC-non-...
1
vote
0
answers
51
views
Oracle VPD to introduce non-invasive dbms_utility.format_call_stack
We have a situation whereby the code generates an intermetent 'Insert' on a table.
The idea is to enable VPD (via DBMS_RLS.ADD_POLICY) methods, on 'insert' of the table, and policy function, which is ...
0
votes
1
answer
146
views
Go prints different function name from program counters returned from runtime.Callers() if I use errors package
code1:
package main
import (
"fmt"
"github.com/pkg/errors"
"runtime"
)
func main() {
ptrs, _ := Test1("arg1", "arg2")
for _, pc :...
0
votes
0
answers
590
views
How to interpret different pieces of output in a Linux kernel stack trace?
I am debugging a Linux kernel crash. I am looking at the last words found in a kernel log available after the crash and reboot. I am trying to interpret the callstack of a failed task.
I am not sure I ...
0
votes
0
answers
413
views
Retrieve all functions that called by a user mode process in kernel mode debug including kernels functions
I am trying to find all the functions including both user mode functions and kernel mode functions that wmic.exe calls to execute the diskdrive command. In order to do this I opened wmic.exe in my ...
0
votes
1
answer
195
views
Does GDB shows wrong data when run over an compiler optimized binary image?
I am having a code like -
100 static void
101 func (<struct type1> *arg1, <struct type2> **arg2)
102 {
103 <struct type2> *var1;
...
...
...
112 var1 = *arg2; /* arg2 is no ...
2
votes
0
answers
140
views
C# dump analysis: newbie question: where's the rest of my callstack?
I have quite some experience in debugging memory dumps, so now that I have a C# problem, I try to solve this using memory dump analysis too, but this seems not to work:
When I use my user-interactive ...
9
votes
1
answer
968
views
Multiple call stack main threads in VSCode when running debug
I'm running an android emulator with Flutter in VSCode on Windows. When I run debug the call stack runs 2 main threads. Is this abnormal? I am getting emulator connections dropouts. With other (...
2
votes
0
answers
179
views
Is there a way to trace callstack of an application running on gem5?
I am looking for a way to keep a track of all the functions that are called when I run an application on the gem5 simulator. For example, there is this code test.c:
#include <stdio.h>
int main()...
0
votes
0
answers
46
views
How I can record call stack? [duplicate]
I want to have A executed functions list. it will help me in debugging.
one way is to create some code snippet which add the currently executing function name in the list and paste that in every ...
0
votes
1
answer
350
views
Recursive stacks frames have identical values in visual studio debugger for python
I was trying to do a depth first recursive search in python on a graph class I made. I failed the test at the assertion level for some unknown reason: AssertionError: None not found in [[1, 2, 4, 6], [...
0
votes
2
answers
2k
views
OpenEdge Progress-4GL development: how to know from an error message the procedure I'm running?
As stated in previous questions, I'm quite new at Progress-4GL development.
I've just created a windows (*.w file), together with a procedure file (*.p file), which are based on an include file (*.i ...
4
votes
0
answers
141
views
Simple on-demand function call tree in Python?
I'm working on a project with lots of calls to functions stored as callable instances and my only way to "debug" is writing on stdout. Also the project is massively nested and monolithic so ...
0
votes
0
answers
13
views
Beginner: Is there a better way than Chrome's Debugger to visualize Active & Outer Enviroments & variable scopes for debugging recursion call stacks?
let add=function(x){
if(x<=1){return 1;}
console.log(add(x-1));
return (x+add(x-1));
};
console.log(add(5));
Chrome's visual guides are highlighting function calls & ...
1
vote
0
answers
540
views
Show call stack / executed methods without setting breakpoints?
Is it possible to record all methods called by my Android app without setting any breakpoint? E.g. if I have no clue where to start, but just want to know which methods are called in my app (and the ...
3
votes
1
answer
2k
views
Child-EBP vs Child-SP
While following up on some windbg tutorials I have noticed that some callstacks using k command are in this format, specially mine
Child-SP RetAddr Call Site
While other online ...
1
vote
1
answer
128
views
Can callstack line numbers differ between debug and release builds?
I'm confused by a callstack a customer sent me. The customer's version is, of course, a release build, but the line number of the exception just doesn't make sense.
Just now I noticed that there is ...
0
votes
1
answer
336
views
Create a conditional breakpoint base on the call stack
I have a common function that is used from many different objects in many different classes. I want to set a breakpoint on that function that triggers only if is the call stack is present a class.
...
4
votes
1
answer
4k
views
How in x32dbg/x64dbg do i automatically follow the stack (ESP) in the 'dump window'?
How in x32dbg/x64dbg do i automatically follow the stack (ESP) in the dump window? So i'm not only interested to see the stack-window-view but also the live top of the stack data-dump (hex/ascii) view....
6
votes
3
answers
835
views
Search in call stack
I'm analysing memory and crash dumps of multi-threaded C++ applications.
As explained in this VisualCommunity question, I'm interested in all threads, who are not waiting and not sleeping.
Currently ...
9
votes
0
answers
975
views
R: Getting more informative error messages in R
I am still not very good at using R’s standard debugging tools, and I often find that neither the error nor the traceback tell me enough to figure out what is going on. I would like to change R’s ...
2
votes
0
answers
615
views
Get the same StackTrace as that which appears in Visual Studio's "Call Stack" window
var newStackTrace = new StackTrace(true);
or the obsolete
var newStackTrace = new StackTrace(Thread.CurrentThread, true);
give me a StackTrace that is different from that which I see in the "Call ...
-2
votes
1
answer
605
views
Why some of the local variables are not listed in the corresponding stack frame when inspected using GDB?
I have a piece of code in C as shown below-
In a .c file-
1 custom_data_type2 myFunction1(custom_data_type1 a, custom_data_type2 b)
2 {
3 int c=foo();
4 custom_data_type3 t;
5 ...
4
votes
1
answer
66
views
Can you decorate a debug-breaking function to instead break where that function is called from?
This is best explained with an example. Consider this mustOverride helper function:
func mustOverride(callSite:String = #function) -> Never {
preconditionFailure("\(callSite) must be ...
1
vote
1
answer
284
views
Visual Studio Call stack window what does + ... bytes mean?
I've noticed that in Visual Studio Call stack window, after
... Line xx for some lines there is something like + 0x1e bytes added in the end.
I tried googling about that, but did not find anything ...
4
votes
1
answer
6k
views
WinDbg not showing entire call stack?
I am trying to debug a very old game called "Ballmaster" (whose source code I do not possess) using WinDbg. I attached WinDbg to the game when a dialog is shown so that the call stack of the UI thread ...
2
votes
1
answer
550
views
How do symbols solve walking the stack with FPO in x86 debugging?
In this answer: https://stackoverflow.com/a/8646611/192359 , it is explained that when debugging x86 code, symbols allow the debugger to display the callstack even when FPO (Frame Pointer Omission) is ...
1
vote
1
answer
4k
views
Example of getting C++ call stack on Windows
Can someone give an example of how to get programmatically the call stack of the currently running C++ program on Windows?
From some threads (e.g. print call stack in C or C++ ) I have got a ...
4
votes
0
answers
64
views
Chrome DevTools, always reset focus in callstack
Latelly i dont know what combination of keys i did to do this. But even when i close the callstack in DevTools, it reopens and refocus on it, on every debug steps!
This is starting to be incredibly ...
2
votes
1
answer
67
views
How can I see the strackrace that includes the frames generated by my methods?
In Android Studio,I run the app in Debug mode which loads it into the emulator. Then I go through the app clicking through the UI so my user defined methods are called as to generate a stack trace. I ...
15
votes
2
answers
2k
views
Is there a way to filter noisy stack frames from Intellij's debugger?
I'm trying to debug some code using Intellij's debugger, and the call stack is filled with AOP and proxy-related stack frames. It makes it really hard to locate relevant stack frames. Is there a way ...
0
votes
0
answers
429
views
what is dlclose() doing when it hangs?
0x0900000000054be4 unatexit(??) + 0x64
0x090000017026bad8 ...
-1
votes
3
answers
52
views
c++ debugger stops in wrong place on crash, VS10 win7
This is a small program i wrote to reproduce the error i get:
#include <assert.h>
int main(int argc, char **argv)
{
int* nPtr = 0;
*nPtr = 5;
//assert(0 && "testing");
...
6
votes
1
answer
712
views
Searching call stacks in Visual Studio [duplicate]
I am using Visual Studio to debug a large multithreaded C++ application. I am trying to find out what thread ran a function I am interested in.
I have more than 40 threads, some with really lengthy ...
0
votes
1
answer
870
views
Visual Studio's Graphic Diagnostics not capturing any data
I'm trying to capture a DirectX 9 game's frame to see information about how it is rendered. This part can be achieved with PIX, which works correctly. PIX, however, does not capture any call stack for ...
1
vote
1
answer
1k
views
how to know which NSArray is causing the exception
My iOS app is crashing with the following error message. Basically, I am trying to access an array index that is not present.
How do I get Xcode to show me the exact array name on which I did the ...
2
votes
1
answer
3k
views
Tracing VB6 runtime error by debugging it
I started using WinDbg to debug VB6 runtime errors but can't really get it to work, all I need is to know the source of the error (the procedure where the error comes from).
I created a small app to ...
2
votes
2
answers
1k
views
C++ callstack on windows access violation
I have been trying to make a Windows application dump the callstack on the event of a crash (bad memory access or division by zero) or standard c++ exceptions.
I have build StackWalker and linked it ...
7
votes
1
answer
175
views
What does Opt.out mean?
Looking at the call stack I just noticed this:
Notice the Opt.out at the top.
Just curious, what does Opt.out mean?
Here's the snippet that I'm stepping through:
function BinaryEquals(Left, ...
80
votes
7
answers
43k
views
How to print call stack in Swift?
In Objective-C, you can print the call stack by doing the following:
NSLog(@"%@", [NSThread callStackSymbols]);
How do you do this in Swift without using Foundation class?
0
votes
0
answers
1k
views
"Debug error R6010 - abort() has been called" - How to debug?
At completely random times during runtime, my program crashes with the error in the title. The error occurs without any user inputs or indication as to why, which makes it difficult to debug. The Call ...
1
vote
1
answer
99
views
Can we get correct (or full) stack dump always for crash issues
Many times we don't get correct or complete stack dump during crash. My question is in what all cases we can see this to happen.
Probably it can be because of the function call stack getting ...
1
vote
0
answers
195
views
VB.NET Call Stack in Microsoft Visual Studio - Wrong Line of Source Highlighted?
I seem to be having an issue using the call stack viewing functionality of Microsoft Visual Studio 2010 Professional.
During debugging, my application crashed, so I inspected it with the call stack ...
0
votes
0
answers
631
views
call stack is lost during debug in xcode with iOS
I create a simple test app which contains a table view, I can select one of rows in the table,
- (void) __attribute__((noinline)) A
{
}
- (void) __attribute__((noinline)) B
{
[self A];
}
- (...
0
votes
1
answer
26
views
Debug view, left click on call stack
I am developing plug-in project in eclipse. It is attached to debug context. In debug when i click on call stack in debug view i need to extract line in code (current executing instruction).
Other ...
5
votes
1
answer
516
views
How to hide 'non-user' stack frames in Delphi call stack window?
Is it possible to hide/collapse stack frames, which does not have source code, and correspondingly, are not marked with these blue dots, in Delphi Call Stack?
Just for reference, Visual Studio is able ...
0
votes
0
answers
289
views
Analyze callstack
When an exception occurs I get the callstack
if(!GetModuleFileNameA((HMODULE) hMod, szModule, len))
{
return FALSE;
}
szModule is
RtlTryEnterCriticalSection+0x0000000000000052
...
7
votes
1
answer
2k
views
Is it possible to see a list of executing functions in Visual Studio while debugging without breaking?
I've worked with the Call Stack, Call Hierarchy, and Profiler. None of these tools gives me a simple, live "just executed function list"... in a tool Visual Studio window. I need something to look at ...