Author Topic: Java breakpoint hit doesn't move editor to breakpoint line  (Read 115 times)

rjpontefract

  • Senior Community Member
  • Posts: 247
  • Hero Points: 9
Java breakpoint hit doesn't move editor to breakpoint line
« on: November 19, 2023, 08:25:47 PM »
Using SE28 on Windows 10.

I have breakpoints set in a Java source file.  When the breakpoint is hit, I expected the source window to move to show the line with the breakpoint that was hit.  If I am viewing a different source buffer, then it works - the buffer is switched to the correct source file and the cursor is move to the line with the breakpoint.  However, if the buffer with the breakpoint line is already active and the cursor is elsewhere in that file, when the breakpoint is hit, the buffer content flashes very briefly and the cursor is still on the line that it was on before instead of moving to the breakpoint line.

Is there an option somewhere that I've changed or is this a bug and SE should always move to the line with the breakpoint?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6681
  • Hero Points: 513
Re: Java breakpoint hit doesn't move editor to breakpoint line
« Reply #1 on: November 19, 2023, 09:33:22 PM »
Here's what I'm seeing. When you start the debugger and the first break point is hit, SlickEdit doesn't scroll the file into view for the case you describe. I'm not seeing this problem for breakpoints after the first break point.

Look into this. As a work around, you can click the right arrow debugger toolbar button (->)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6681
  • Hero Points: 513
Re: Java breakpoint hit doesn't move editor to breakpoint line
« Reply #2 on: November 20, 2023, 02:01:30 PM »
Load the attached macro to fix this. Macro>Load Module...

This will be added to the hot fixes

rjpontefract

  • Senior Community Member
  • Posts: 247
  • Hero Points: 9
Re: Java breakpoint hit doesn't move editor to breakpoint line
« Reply #3 on: November 20, 2023, 06:20:36 PM »
Thanks Clark, that works fine and makes life a bit easier.