Search code examples
delphiidedelphi-xe2breakpointscallstack

(How) can I export the call stack when on a breakpoint?


Is there a way to export the call stack when the code is stopped on a breakpoint?

I have very long ID strings that I need to grab for use in another program (see pic), and retyping from a screen capture is not really an option ;-)

I'm clicking around in the XE2 IDE but can't find anything.

(Workaround: For now I continue stepping through the code after the breakpoint, until I have moved far enough back up the stack that the local variables are available again.)

enter image description here


Solution

  • The call stack debug window supports the usual selection and clipboard shortcuts. So use CTRL+A to select the entire call stack, and CTRL+C to copy to the clipboard. Or you can select a single item and copy with CTRL+C. Or you can select multiple items with CTRL+click and SHIFT+click, and so on.