Recent

Author Topic: [Solved] step back in lazarus  (Read 2644 times)

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
[Solved] step back in lazarus
« on: May 12, 2017, 11:33:11 pm »
Hi, is it possible to see from where a function or procedure was called using some sort of step back functionallity (I am thinking about the step into and step over buttons)?
« Last Edit: May 13, 2017, 12:10:27 am by cpicanco »
Be mindful and excellent with each other.
https://github.com/cpicanco/

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9864
  • Debugger - SynEdit - and more
    • wiki
Re: step back in lazarus
« Reply #1 on: May 12, 2017, 11:53:02 pm »
No, there is no step back.

You can use the callstack to see from where a function was called.

But you can't see which commands in the current function were executed (e.g. if there is an "IF THEN ELSE" before the current command, then you do not know if the "then" or the "else" was executed.

You can set a breakpoint, if you want to see if a command got executed.

There is a trick to record some flow info with breakpoints. In breakpoint properties, you can set that the breakpoint should not "break". And you can set, that it should take a snapshot. Then later you can use the "history" debug window, to see if (and in which order) such breakpoints where hit.

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: step back in lazarus
« Reply #2 on: May 13, 2017, 12:10:03 am »
Hi Martin, thank you for your response. I have found that the Assembler window was all that I need for now. Just want to know from where the call occured, don't need more. Thank you again!
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: [Solved] step back in lazarus
« Reply #3 on: May 13, 2017, 12:13:11 am »
In fact, the callstack window is much more straight to the point!  :D
Be mindful and excellent with each other.
https://github.com/cpicanco/

 

TinyPortal © 2005-2018