Gradle is different from maven. After running run debug, several more configurations are required:
Open Run-DebugConfigurations - create a new remote java application as shown in the figure
Then click debug, then break the point in the project and then request, you can start the debug mode