HaxeFoundation / HaxeFoundation/haxe

[hxcpp] stepping over shouldn't just fall through

Open
#7,873 0 comments 0 reactions 1 assignee Claimed by @hughsando View on GitHub
enhancement platform-cpp
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Consider this example code:

```haxe
class Main {
static function main() {
foo();
}

static function foo() {
var value = 1;
trace("bar");
}
}
```

Stepping over at the end of the function suddenly puts me into `EntryPoint.hx`, which can be somewhat confusing:

![](https://i.imgur.com/vXMmhJP.gif)

The behavior with all other debuggers (Eval, HL, Flash and JS) is instead:

- stepping over first gives some indication that we're about to leave the function, see #7767 for more details
- stepping over again puts you at `foo()` in `main()`, or `}` in `main()` in Eval's case

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.