How increase IntelliJ Debug Performance - dn0000001/test-automation GitHub Wiki

Root Cause - Page Components/Web Elements

The main cause of debugging slowness in IntelliJ is that it uses toString() on the object to display information in the debugger.  However, for Page Components/Web Elements this will bind the element which if the variable is not displayed will extremely slow down the debugger.

Solution to speed up gathering Page Components/Web Elements debug information

By adding custom Java Type Renderers for Page Components/Web Elements which do not bind the element this can be prevented.

  1. Go to File > Settings
  2. Go to Build, Execution, Deployment > Debugger > Data Views > Java Type Renders
  3. Add a Page Component Renderer with following: intellij-page-component-renderer
  4. Click Apply
  5. Add a Web Element Renderer with following: intellij-web-element-renderer
  6. Click Apply