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.
- Go to File > Settings
- Go to Build, Execution, Deployment > Debugger > Data Views > Java Type Renders
- Add a Page Component Renderer with following:
- Click Apply
- Add a Web Element Renderer with following:
- Click Apply