From the documentation at https://docs.spring.io/spring-boot/reference/features/logging.html#features.logging.console-output :

you can also specify debug=true in your application.properties.

When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate, and Spring Boot) are configured to output more information.

Answer from abaghel on Stack Overflow
🌐
Baeldung
baeldung.com › home › spring › debugging spring applications
Debugging Spring Applications | Baeldung
February 2, 2026 - There are several ways to start Spring Boot applications. The simplest way is from the command line using the java command with the -jar option. To enable debugging, we simply add the debug argument using the -D option:
🌐
Jamie Tanna
jvt.me › posts › 2022 › 02 › 13 › spring-debug-mode
Determining if the Spring Boot Application is Running in Debug or Trace Mode · Jamie Tanna | Software Engineer
February 13, 2022 - You can do this by running in debug mode, which is most commonly done by setting the debug command-line flag: java -jar /path/to/boot.jar --debug · Or by specifying in our properties file that we're using debug mode: debug=true ·
🌐
Spring
docs.spring.io › spring-boot › reference › features › logging.html
Logging :: Spring Boot
When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate, and Spring Boot) are configured to output more information. Enabling the debug mode does not configure your application to log all messages with DEBUG level. Alternatively, you can enable a “trace” mode by starting your application with a --trace flag (or trace=true in your application.properties).
🌐
GitHub
github.com › spring-projects › spring-boot › issues › 40930
Spring Boot 3.3.0 Native debug=true in application.properties No effect · Issue #40930 · spring-projects/spring-boot
May 28, 2024 - I need to debug my Spring Boot v3.3.0 native application built using mvn package -P <native-profile> as it is failing to load application properties from AWS parameter store which was otherwise working fine till Spring Boot v3.2.5 · So, have added debug=true in application.properties and expected to see additional information on the config failure reported via org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter, but no effect
Published   May 28, 2024
Author   syedyusufh
🌐
Spring
docs.spring.io › spring-boot › docs › 1.5.22.RELEASE › reference › html › boot-features-logging.html
26. Logging - Spring
When the debug mode is enabled, ... to log all messages with DEBUG level. Alternatively, you can enable a “trace” mode by starting your application with a --trace flag (or trace=true in your ......
Find elsewhere
🌐
Spring
docs.spring.io › spring-boot › docs › 1.5.2.RELEASE › reference › html › boot-features-logging.html
26. Logging
When the debug mode is enabled, ... to log all messages with DEBUG level. Alternatively, you can enable a “trace” mode by starting your application with a --trace flag (or trace=true in your ......
🌐
JetBrains
jetbrains.com › help › idea › run-debug-configuration-spring-boot.html
Spring Boot run configuration | IntelliJ IDEA Documentation
1 month ago - The following options are specific to the Java compiler and runtime for your Spring application: The following options are related to logging the execution of this configuration. For more information, refer to Logs. The following options are related to code coverage. For more information, refer to Code coverage. In this area, you can specify tasks to be performed before starting the selected run/debug ...
🌐
Medium
medium.com › @AlexanderObregon › debugging-and-troubleshooting-spring-boot-applications-tips-and-tricks-5206d63a60ba
Debugging and Troubleshooting Spring Boot Applications — Quick Tips and Tricks
April 23, 2024 - Spring Boot’s auto-configuration feature simplifies the setup of your application, but sometimes issues may arise due to misconfiguration. When you run your application with the --debug option or enable debug logging for org.springframework.boot.autoconfigure, Spring Boot generates an auto-configuration report that lists all applied and non-applied configurations, which can help you identify misconfigurations.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 9250565005586-Maven-Run-configuration-spring-boot-unable-to-debug
Maven Run configuration spring boot unable to debug. – IDEs Support (IntelliJ Platform) | JetBrains
However, Spring Boot run does not generate a build.properties file like mvn spring-boot:run does which my app needs to be able to run correctly. I found this: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360007199739/comments/360002405220 Is there any way to get spring run config to both generate the BuildProperties bean that my app needs while also using the SpringBoot run configuration? ... In this case, the Debug option launches the debug for the Maven process, which runs the goal - it does not launch the JVM, which is forked by this process in debug mode.
🌐
Dynatrace
rookout.com › __home__ › cloud & monitoring solutions › observability for developers
Spring Boot Debug: How To - Observability for Developers
4 days ago - Instantly capture full-stack debug data from any line of code directly from both your IDE or a web-based interface
🌐
EDUCBA
educba.com › home › software development › software development tutorials › spring tutorial › spring boot debug
spring boot debug | Learn how to debug the spring boot application?
April 3, 2023 - To start the web logic server by using debug enables, we need to set the environment variable to debug flag as true. We can start the glassfish server by using the execution file name as asadmin.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
HowToDoInJava
howtodoinjava.com › home › spring security › enable debug logging for spring security
Enable Debug Logging for Spring Security
June 9, 2022 - Applying the debug switch may be enabled temporarily during the development time but debug logging should never be used in the production environment. If we want to enable the switch for specific deployment profiles then we can set the following property to true in that environment. org.springframework.security.config.annotation.web.builders.WebSecurity.debugEnabled=true