Skip to content

Commit 35398a5

Browse files
committed
Add N&N for Statement stepping
1 parent e102898 commit 35398a5

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

news/4.40/images/AfterFilter.gif

326 KB
Loading

news/4.40/images/BeforeFilter.gif

499 KB
Loading
954 KB
Loading

news/4.40/jdt.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,34 @@ A special thanks to everyone who [contributed to JDT](acknowledgements.md#java-d
3232
## Java Formatter
3333
-->
3434

35-
<!--
36-
---
37-
## Debug
38-
-->
35+
36+
## Debugger
37+
38+
### Statement-Level Stepping Support
39+
40+
<details>
41+
<summary>Contributors</summary>
42+
43+
- [Sougandh S](https://github.com/SougandhS)
44+
- [Andrey Loskutov](https://github.com/iloveeclipse)
45+
</details>
46+
47+
A new filtering option has been added to the `Step Filtering` preferences to enable __Statement-Level Stepping__.
48+
When enabled, the debugger skips intermediate bytecode instructions within a single statement and suspends only at the next executable source statement.
49+
50+
![Filter Statement Preference](images/FilterStatementPreference.png)
51+
52+
This is particularly useful for multi-line statements, where stepping would otherwise pause multiple times due to intermediate operations.
53+
By filtering out these intermediate steps, the debugger provides a smoother and more source-aligned stepping experience.
54+
55+
__Before__ (Will take 8 Step Over(s) to complete `tet()` method invocation)
56+
57+
![Before Filter](images/BeforeFilter.gif)
58+
59+
__After__ (Will take only 3 Step Over(s) to complete `tet()` method invocation)
60+
61+
![After Filter](images/AfterFilter.gif)
62+
3963

4064
<!--
4165
### JDT Developers

0 commit comments

Comments
 (0)