Category : vscode-debugger

I am using VS Code’s "Remove – WSL" extension to try to connect to a Docker container (backed by WSL2) running a Python job. The python job is started somewhat like this: exec python3 -m debugpy –listen 5678 –wait-for-client some_file.py In my docker-compose.yml file I have set ports: – "5678:5678" And I run the service ..

Read more

I tried the postDebugTask but it doesn’t seem to run the task at all. I’ve skimmed this as well to no avail. ./.vscode/launch.json { "version": "0.2.0", "configurations": [ { "name": "Launch Node.js in Docker", "type": "docker", "request": "launch", "preLaunchTask": "run", "platform": "node", "removeContainerAfterDebug": true, "postDebugTask": "stop" } ] } ./.vscode/tasks.json { "version": "2.0.0", "tasks": [ ..

Read more

I have a dockerized RoR app and I’m trying to run it in debug mode using rdebug-ide and vscode. Already added gems ruby-debug-ide and debase. I installed ruby extension on vscode and created the launch config: "version": "0.2.0", "configurations": [ { "name": "Attach to Docker", "type": "Ruby", "request": "attach", "remoteHost": "0.0.0.0", "remotePort": "9000", "remoteWorkspaceRoot": "/app", ..

Read more

I’m trying to setup native debugging for a python script running in docker for Visual Studio Code using debugpy. Ideally I’d like to just F5 and be on my way (including a build phase if needed). Currently I’m bouncing between a timeout caused from debugpy.listen(5678) inlined within the VS code editor itself (Exception has occurred: ..

Read more

Im trying to setup VSCode Debugger for a docker/django environment but struggling im busy following this guide https://gist.github.com/veuncent/1e7fcfe891883dfc52516443a008cfcb which worked on a different project, but i can’t seem to find out why it isn’t connecting to my breakpoints in this project. I have opened the ports in docker-compose and everything :/ django: build: . command: ..

Read more