How to increase debug log level in PhpStorm?
Background/Situation
In some cases, the default log level is not enough for proper troubleshooting, so it is possible to enable the extended debug level per subsystem.
Question
How to increase the debug log level in PhpStorm?
Answer
To increase the debug log level, navigate to Help > Diagnostic Tools > Debug Log Settings and add one of the following lines:
com.jetbrains.php- PHP Subsystem.com.intellij.execution- External program executions. Could be useful to trace every tool that is being executed with the PHP CLI Interpreter.com.intellij.docker- Docker Subsystem.com.jetbrains.plugins.webDeployment- Deployment (FTP/SFTP/etc) Subsystem.com.intellij.ssh- SSH Subsystem, it is a required option for the SFTP Deployment troubleshooting.com.intellij.platform.ijent- WSL IJent interactions.org.jetbrains.plugins.terminal- A built-in IDE Terminal.com.intellij.openapi.vfs.newvfs.RefreshSession- VFS changes.com.intellij.xml- XML files, XSD schemas.
In some cases, logs can be too extensive, so it makes sense to use a more granular approach, for example:
com.jetbrains.php.tools.quality.QualityToolProcessCreator - PHP Code Quality Tools,
com.jetbrains.php.debug - PHP Debug.
Also, it is possible to set a more detailed level with the :TRACE suffix like:
com.intellij.openapi.vfs.newvfs.RefreshSession:TRACE
Note: These settings should be enabled for the period of troubleshooting and then removed, as logs may grow very quickly and be erased by retention.
Please sign in to leave a comment.