If you want to use Visual Studio Code to develop and debug then follow these steps:
- Install the Java Extension Pack, Spring Boot Extension Pack and Lombok Annotations Support for VS Code extensions.
- Run
gradlew eclipse
to generate the build information. - Add the following definitions to the
launch.json
file in the workspace.{ "type": "java", "name": "Debug (Attach)-ApiCatalogApplication<api-catalog-services>", "request": "attach", "hostName": "localhost", "port": 5014, "projectName": "api-catalog-services" }, { "type": "java", "name": "Debug (Attach)-GatewayApplication<gateway-service>", "request": "attach", "hostName": "localhost", "port": 5010, "projectName": "gateway-service" }
Launch either of the services in debug mode and then attach the debugger by running the appropriate launch configuration.