javascriptdebuggingfirefoxes6-classprivate-members

How do I see my private class field values in Firefox debugger?


When the code pauses at a breakpoint, where in devTools are my private class variables displayed? I can see the public ones but not the privates (I mean variables prefixed with #)

class MyClass {

  #myVar;

  constructor() {
    
    this.#myVar = 'foo'
    debugger
  }
  
}


new MyClass()


Solution

  • Firefox is now supporting the debugging of private variables, like any other wihtout specific manipulation. I'm resolving the issue.