M
M
magary42020-07-18 13:23:31
Docker
magary4, 2020-07-18 13:23:31

How to run debug in a container?

here is my config

"configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "outFiles": [
                "${workspaceFolder}/**/*.js"
            ],
            "cwd": "${workspaceFolder}...",
            "runtimeExecutable": "npm",
            "runtimeArgs": ["run-script", "debug"],
            "port": 9229
        }
    ]


when vc starts, it executes the debug script and it obviously fails,
the project starts like this:
first, it runs through the makefile
@docker run --rm=true -it -p 9229:9229 -v "$(ROOT_DIR)":/home/ct $(DOCKER_IMAGE_NAME):$(CT_TAG) bash

then in the yarn start container, how can I start
it all with a button from the studio so that the debugger is attached?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question