Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step Out button should complete the current function instead of discarding it #492

Open
olivier-ploton opened this issue Oct 1, 2024 · 0 comments · May be fixed by #493
Open

Step Out button should complete the current function instead of discarding it #492

olivier-ploton opened this issue Oct 1, 2024 · 0 comments · May be fixed by #493

Comments

@olivier-ploton
Copy link

Hello.

The 'step out' button discards the end of the current functions and returns. It is a subjective point, but according to me this is not the usual behavior: googling 'step out' gives me for example these answers from StackOverflow: (https://stackoverflow.com/questions/52368009/what-is-the-difference-between-step-in-step-out-and-step-over) and
(https://stackoverflow.com/questions/24712690/step-out-of-current-function-with-gdb).

Moreover, discarding by error the end of a function often leads to memory leaks, inconsistent states and crashes (e.g. when C++ destructor calls are forgotten at the end of a function).

I propose to change the 'step out' behaviour to the usual one. If you agree, you can have a look at the (very small) pull request I send to you.

Sincerely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant