Skip to content

Commit

Permalink
Fix step-over behaviour followed by step-in instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Nov 29, 2024
1 parent f1c60dc commit d417ec9
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 d417ec9

Please sign in to comment.