Debugger should allow for a timeout when debugging inside container
See original GitHub issueEnvironment data
- VS Code version: 1.49.2
- Extension version: v2020.9.111407
- OS and version: Linux x64 5.4.0-7642-generic
- Python version: Python 3.8.2
- Type of virtual environment used: Docker
- Value of the
python.languageServer
setting: Jedi
Expected behaviour
The debugging session should start normally and correctly map breakpoints.
Actual behaviour
The debugging session should fails at start and cannot map some breakpoints until reloaded.
Steps to reproduce:
1.Setup a launch debugging configuration or compound where the preLaunchTask involves starting a Docker container in detached mode (like docker compose up -d) 2. Launch the debugging session 3. Observe the debugging session fail, not be launched or produce errors (like breakpoints not being mapped correctly) 4. Launch the session again and works normally.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Pycharm attach to process inside a container causes accept ...
I am using pycharm professional 2021.3.1 and ubuntu 18.04 I can attach to any process running directly on the host.
Read more >Debug an app running in a Docker container
Debug an app running in a Docker container, using Visual Studio Code. ... NET applications within Docker containers can be found in Debug...
Read more >PyCharm remote debug times out
Hey, I'm trying to debug my code in a docker container on my local PC. I set up a remote interpreter to use...
Read more >Changing integration debugger timeout values - IBM
In the Debugger timeout (ms) field, ensure that the value is at least 300000 milliseconds, which is five minutes. You can increase the...
Read more >Interactive debugging with Visual Studio Code - Microsoft Learn
If you set a timeout for the debugpy connection in the score.py file, you must connect VS Code to the debug session before...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tasks in general are handled by VSCode proper, so adding some form of delay to them would have to be done in https://github.com/microsoft/vscode. But I think their intent is that for anything that requires this degree of complexity, a task spawning a script (that can then use the standard scripting facilities to wait on timer, or on some external condition) is the way to go.
Sure, will do! @Yajo