question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger should allow for a timeout when debugging inside container

See original GitHub issue

Environment 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:closed
  • Created 3 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
int19hcommented, Oct 6, 2020

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.

0reactions
joao-p-marquescommented, Oct 6, 2020

Sure, will do! @Yajo

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found