Search code examples
scalaintellij-ideacompiler-errorssbtintellij-14

Always getting ClassNotFoundException when trying to debug


No matter what I do, when I have an object extending "App" and try to debug I get an error

object  Foo extends  App {

  print("here")

}

enter image description here

 throw new ClassNotFoundException(name);

The stack gives absolutely no clues (to me) what is wrong

enter image description here

enter image description here


Solution

  • There may be some breakpoints enabled but you are not aware.

    Go to Run > View Breakpoints

    Clear all breakpoints (especially Java Exception Breakpoints), and then try to debug again.