Page 1 of 1

What is "step over" and "step out"?

Posted: Sun Sep 15, 2024 11:49 pm
by Randy Walker
I've tried to observe the behavior on both "step over" and "step out" but cannot figure them out. Searched the forums and help but searches all come up dry. :?

// Moved from "Coding Questions" to "General Discussion" (Kiffi)

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 3:55 am
by DarkDragon
These are debugger terms:

step into: go into the procedure call where the debugger is right now.
step over: execute the procedure as a whole where the debugger is now and stop afterwards again.
step out: leave the current procedure in which the debugger is now.

Usually there is a button or hotkey for each of them in the debugger GUI.

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 7:01 am
by TI-994A
DarkDragon wrote: Mon Sep 16, 2024 3:55 am These are debugger terms:

step into: :?:

I don't seem to have this debugger option. :shock:

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 7:05 am
by Randy Walker
DarkDragon wrote: Mon Sep 16, 2024 3:55 am These are debugger terms:

step into: go into the procedure call where the debugger is right now.

Usually there is a button or hotkey for each of them in the debugger GUI.
Thanks for the reply DarkDragon. All seem to be proecedure related. I guess that is why I could never get a handle on their behavior. "Step into" is an option I have never seen and still makes no sense. If I just use the step option it seems to go into the procedure anyway if that is the next step.

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 7:57 am
by TI-994A
Randy Walker wrote: Mon Sep 16, 2024 7:05 am...I could never get a handle on their behavior. ...

It's all quite simple...

Image

Image

Image


STEP INTO is not implemented in PureBasic. Some debuggers will not enter and step through procedures, so this forces debugging execution to step into a procedure.

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 9:10 am
by Fred
'Step into' is the default step mode in PureBasic (it always enters the procedure by default)

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 9:42 am
by Randy Walker
VERY Nicely laid out TI-994A -- Thank you VERY Much!!!
And I get the Step In part now too. Thanks Fred!
:) :) :)

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 9:55 am
by TI-994A
Randy Walker wrote: Mon Sep 16, 2024 9:42 am VERY Nicely laid out...

Thanks for saying so, Randy. I'm glad it's helpful. :D

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 12:06 pm
by minimy
Thanks for lessons TI-994A!

Re: What is "step over" and "step out"?

Posted: Mon Sep 16, 2024 2:11 pm
by TI-994A
minimy wrote: Mon Sep 16, 2024 12:06 pmThanks for lessons TI-994A!

Much appreciated, @minimy. I find myself with some unexpected free time at the moment. :lol:

Re: What is "step over" and "step out"?

Posted: Sat Oct 12, 2024 10:36 pm
by minimy
Hollidays!! Yeeehuuu! :lol:
TI-994A wrote: Mon Sep 16, 2024 2:11 pm
minimy wrote: Mon Sep 16, 2024 12:06 pmThanks for lessons TI-994A!

Much appreciated, @minimy. I find myself with some unexpected free time at the moment. :lol: