Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Breakpoints stop working with JUnits/Mockito mid-development(Running JUnit tests, eventually breakpoints stop breaking or going to the debugger)
Breakpoints stop working with JUnits/Mockito mid-development [message #1810896] Wed, 21 August 2019 08:49 Go to next message
Eclipse UserFriend
I've been using Eclipse for decades, and sure, after using an install for a while stuff eventually stops working correctly. But this install is less than 4 months old.

I'm running JUnit tests (and sometimes Cucumber tests hooked in) with the debug icon in the toolbar. They've worked until yesterday.

I started using Mockito spy(..) because one class is too complex and started getting the "Unable to install breakpoint in...$MockitoMock$.. due to missing line number attributes. Modify compiler options.."

But then it continued running, showed the message a couple more times, and finally went to the debugger.

Well, all those pop-ups are annoying, but after clicking "Don't show this message again" on the dialog, the Debugger perspective never comes up again. Even in a new workspace.

Let me say that again: now the debugger never appears and execution never stops. "Debug" is working exactly like "Run".

I've:
A) gone into the debugger Perspective and tried deleting all breakpoints and creating new ones.
B) gone to the breakpoint pane, right-clicked, and tried removing all triggers - there are none
C) after running the project as a JUnit stopped debugging, I tried debugging the file itself - same failure.
D) restarted the Eclipse
E) restarted the laptop
F) created a new workspace for the git project - both created/downloaded in new disk locations.
G) Preferences > Java > Compiler, "Add line number attributes..." is still checked.

No change in getting the debugger to appear during execution.

Oddly, after creating the new workspace that pop-up error only appears once when debugging the tests, but it should hit that breakpoint twice from different tests methods, like it did before it stopped working...


This is STS4/Eclipse Platform 4.11.0.v20190307-0500 running on Windows 10.

So who can tell me: what is the secret setting which got corrupted?

Or is a re-install/nuke the HD from orbit the only possible solution?

Thanks!
Re: Breakpoints stop working with JUnits/Mockito mid-development [message #1810971 is a reply to message #1810896] Thu, 22 August 2019 14:12 Go to previous messageGo to next message
Eclipse UserFriend
All these preferences related to Debug perspective to show the dialogs are defined under Preferences->Run/Debug or Preferences->Java->Debug

You will say many "Prompt for.." preferences defined there, you can enable them again.
Re: Breakpoints stop working with JUnits/Mockito mid-development [message #1828038 is a reply to message #1810971] Fri, 29 May 2020 14:35 Go to previous message
Eclipse UserFriend
Hi there,
I'm facing the same problem, has anyone managed to figure out the solution for this issue yet?? any help would be much appreciated

Thanks
Previous Topic:Eclipse Not visible to other users on Machine
Next Topic:JDT compiler
Goto Forum:
  


Current Time: Fri Jul 25 08:52:41 EDT 2025

Powered by FUDForum. Page generated in 0.05222 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top