Category : debugging

I want to debug an application within a Docker container as described in https://docs.microsoft.com/en-us/visualstudio/containers/edit-and-refresh?view=vs-2019 However, the application is so fast, that I’m always too late to attach me to the process. Is there a way to start the application in such a way that it breaks immediately? Or is there a way with Visual Studio ..

Read more

I recently followed the following tutorial to try to debug python code in a Docker container using VSCode: https://www.youtube.com/watch?v=qCCj7qy72Bg&t=374s My Dockerfile looks like this: FROM ubuntu as base #Do standard image stuff here #Python Debugger From base as debugger RUN pip3 install debugpy ENTRYPOINT ["python3","-m","debugpy","–listen","0,0,0,0:5678","–wait-for-client"] I have alternately tried copying the turoial exactly and using ..

Read more

New to VSCode i tried to debug an existing Rails app that Runs within Docker (started via docker compose) I followed the instructions on https://github.com/rubyide/vscode-ruby (installed the gems + extension, launch config). I can start puma and see breakpoints being added some-app_1 | 1: <breakpointAdded no="3" location="…../some-app/app/controllers/hello_worlds_controller.rb:4"/> But when I hit the above controller with ..

Read more

I am trying to debug the maven application running in Docker from Intellij. But facing the below issue during the build time, [ERROR] Picked up JAVA_TOOL_OPTIONS: -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750] Attaching the ..

Read more

I have a node project written in typescript. The process runs inside a docker container using Nodemon. node (via nodemon) is run inside the container with the –inspect option. When I try to connect with Webstorm to the process, it connects but no breakpoints are being hit. This command used in the package.json to start: ..

Read more

After publishing a web (Sitecore) project in Visual Studio into a Docker (Windows) container, I try to attach the debugger to the container running the app. Debug => Attach to process => Connection Type : Docker (Windows Container) => Find : Active Container … After the clicking "Attach" button, a popup appears showing "downloading debugger ..

Read more

I am using docker compose to deploy the services in the container. My dockerfile has an entrypoint which is an executable that has its own options and flags. Following the blog post I seem to have 2 options to attach the debugger to the application running in the container. When I select option 1 (let ..

Read more