cs01 / cs01/gdbgui

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

Open
#492 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10.4k
Forks
521
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the Step Out button and the debugger command handling, then compare the current behavior with the stated gdb expectation; done means Step Out completes the current function rather than discarding its remaining execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
devtools, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.