Start the debugger session
note
This topic relies on your understanding of run/debug configurations. While IntelliJ IDEA provides a way to debug simple applications without any extra setup, understanding run/debug configurations is essential to efficient use of the debugger. For more information, refer to Run/debug configurations.
note
If you are debugging code that is based on a framework or runs on an application server, it is recommended to use the run/debug configuration type that is intended for this type of application. When you launch a debug session, IntelliJ IDEA adds a VM option that allows the debugger to attach. Given that a particular framework may fork the process, there is no guarantee that the target process will get the required VM option if improper run/debug configuration type is used.
Thanks for your feedback!