Skip to content

Setup debugging in Docker #53

Closed
Closed
@weaponsforge

Description

@weaponsforge
  • Create a wrapper function that wraps scripts in a setTimeout() to enable having enough time to select and launch a VSCode debugger when running the script in a container

  • A sample VSCode launch configuration for Docker is:

    {
      "version": "0.2.0",
      "configurations": [
        {
          "type": "node",
          "request": "attach",
          "name": "Attach to Docker",
          "address": "localhost",
          "port": 9229,
          "restart": true,
          "skipFiles": ["<node_internals>/**"],
          "localRoot": "${workspaceFolder}",
          "remoteRoot": "/opt/app"
        }
      ]
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions