Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 1.2 KB

vscode-setup.md

File metadata and controls

26 lines (24 loc) · 1.2 KB

Visual Studio Code setup

If you want to use Visual Studio Code to develop and debug then follow these steps:

  1. Install the Java Extension Pack, Spring Boot Extension Pack and Lombok Annotations Support for VS Code extensions.
  2. Run gradlew eclipse to generate the build information.
  3. 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.