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

Everything else that doesn't fall into one of the other PB categories.
Randy Walker
Addict
Addict
Posts: 1060
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

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

Post 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)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

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

Post 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.
bye,
Daniel
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

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

Post 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:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Randy Walker
Addict
Addict
Posts: 1060
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

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

Post 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.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

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

Post 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.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

'Step into' is the default step mode in PureBasic (it always enters the procedure by default)
Randy Walker
Addict
Addict
Posts: 1060
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

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

Post by Randy Walker »

VERY Nicely laid out TI-994A -- Thank you VERY Much!!!
And I get the Step In part now too. Thanks Fred!
:) :) :)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

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

Post 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
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

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

Post by minimy »

Thanks for lessons TI-994A!
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
TI-994A
Addict
Addict
Posts: 2740
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

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

Post 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:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

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

Post 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:
If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply