Skip to content

Missing breakpoint when enclosing class contains package name #886

@harpocrates

Description

@harpocrates

Consider the following code:

package pkg1.other

class Mother {
  def greet = {
    println("hi mom")
  }
}

class Father {
  def greet = {
    println("hi dad")
  }
}

object Main extends App {
  val mom = new Mother 
  val dad = new Father 

  mom.greet
  dad.greet
}

Set a breakpoint at each of the println lines and then "debug" Main. Only the breakpoint in Father.greet actually works - breakpoint in Mother.greet is completely skipped!!!

It looks like if any of the enclosing packages (other in this case) is contained fully in a case-sensitive way in the class name (Mother in this case), the breakpoints inside of it get skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions