Is it possible to find out which line of a Rust program is running from another program? Maybe using the debug info somehow?
Let’s say we have a Rust executable called
execA. Another Rust program called
execA. Is it possible to use the debug information to find out which file and line of
execA is currently running?
Even better would be being able to control the execution of the program similar to how GDB can. I looked it up and GDB uses something called ptrace. Any idea how to use this to get the currently executing line in the program as it runs?