Skip to content

Commit

Permalink
Merge pull request #43665 from NipunaRanasinghe/2201.11.0-stage
Browse files Browse the repository at this point in the history
[2201.11.0-stage] Fix debugger step-over behaviour followed by step-in instructions
  • Loading branch information
NipunaRanasinghe authored Nov 30, 2024
2 parents c775dba + 1c5a1c1 commit 95e90fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ void activateDynamicBreakPoints(int threadId, DynamicBreakpointMode mode, boolea
*/
private boolean isWithinSameSource(Location currentLocation, Location prevLocation) {
try {
return Objects.equals(currentLocation.sourcePath(), prevLocation.sourcePath());
return Objects.equals(currentLocation.sourcePath(), prevLocation.sourcePath())
&& Objects.equals(currentLocation.method().name(), prevLocation.method().name());
} catch (AbsentInformationException e) {
return false;
}
Expand Down

0 comments on commit 95e90fe

Please sign in to comment.