I want to confirm just.sooo pls
Step Into executes and debug code until selected line
Step Over executes and debug code until the "return" line of the function you have stepped on
Step Out the same as Step Over but it does so: if you stepped on function it executes program until the line where function was called , or how on a website they says "when functions returns"
Step Back executes and debug code from selected line to 0
Confirm pls people bc I am doing this stuff slowly.And if someone care about it, I posted it bc today I want to end with finishing reading page about stepping, and practice tommorow.(bc I got homework to do)
#Little question about Stepping
1 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Step into will step into any function call, step over will not, but both go forward 1 line of code
When you press step into, it will go 1 line forward, or if it's on a function call, it will go into the function
Step over is the same, but it will go over the function call
This is useful when a function is very trivial(like a getter) so you don't need to step into it
you mean ignore function calls or execute the next statement after function?
one line forward
In translation I can understand that you mean:"it will execute only one selected line"
but doesn't it start from top of main()?
your program does
the debugger stops on breakpoints tho
when you answer only through time, it makes me think someone is chasing you and you typed as fast as you could
the functions still get called, the debugger just skips over them
then what is the difference when you call function and go into it . IN both cases it is being executed
Write some code and use the debugger. That's the best way to familiarize yourself with these features
I will show what it shows me
when i tried
step into lets you go trough the function line by line
step over will jump over the whole function without going into it
like if you have a function like
int foo::getX(){ return x;} you dont want to step into this
the reason is : that it takes more resources ?
of pc
no
its because you dont care about a getter because its 1 line and you dont need to look into it when debugging
so you step over it because its behavior is trivial
bro what how
Yeah that makes absolutely no sense to me
I can not from error message what even to do
;compile
#include <iostream>
int main(){
int a, b;
std::cin >> a >> b;
a+= 1;
}
Compilation successful
No output.
nevemlaci | 50ms | c++ | x86-64 gcc 14.2 | godbolt.org
yeah that shouldnt happen you code is fine 
Only thing I can think of is the code doesn't match
huh
But even then I don't think the debugger would work
we just do not care about what to choose?
what
you dont need to step into a function that is completely trivial like a getter
Sometimes you might want to
the options are also trivial? (I tried to translate this word)
to create semantic optimization? (eng is not my traditional lang)
not physical
okay guys but what about 2 others
is everything fine with them?