Find the current execution point in Delphi at runtime
debugging, delphi
Solution
The debugger might be showing the stack trace of a different thread then what you expect when you pause the program. You can check that from the "Thread Status" window (Ctrl+Alt+T).
Problem
I've written a delphi program, which has grown to some complexitiy. Now I'm facing the problem, that I introduced somewhere an infinite loop, but I can't find the location. The program is a realtime application and hang up indefinitely. Is there a possibility to pause the exectution and find out, where my program currently is? When I use the pause button of the delphi debugger, it always breaks in the cpu-window at a line called `ntdll.RtlUserThreadStart`, seems to be some kind of os method, but I have no idea what that means. Even stepping through the assembler doesn't return me in any line of my code. Is there a possibility to say the debugger to stop at an arbitary line in my code, where it's executing?