Allow users to set the timeout for debugger connection. (Debugging with compound launch configs occasionally fails `Timeout Waiting for Debugger...` message)
See original GitHub issueEnvironment data
- VS Code version: 1.28.0-insider
- Extension version (available under the Extensions sidebar): 2018.8.0
- OS and version: Windows 10 1803
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.3
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv
- Relevant/affected Python packages and their versions: nameko-2.11.0
Actual behavior
Debugger often fails with a timeout error when launching more than one project using the nameko framework. A Reload Window
must be performed before debugging multiple projects at once will work.
Expected behavior
Debugger should reliably start and enter a debug session for all nameko-based microservice projects.
Steps to reproduce:
- Create a new workspace
- Add a folder to the workspace, with a virtual environment (venv)
- Use
pip
to installnameko
in the project folder - Repeat the process with a second project/folder in the workspace
- Configure the
launch.json
for each project, addinggevent: true
- Write a stub service both projects
- Create a workspace launch configuration which launches both projects
- Hit F5. With a bit of luck, both projects will start
- Stop both projects
- Hit F5 again.
- Repeat 8-10 until one project fails to start (
Timeout waiting for debugger connection
message) - Hit
Ctrl+Shift+P
and chooseReload Project Window
- Hit F5 again - note that both projects start successfully.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
##########Linting Output - pylint##########
************* Module service
27,27,error,E1101:Instance of 'RpcProxy' has no 'execute' member
27,8,warning,W0612:Unused variable 'existing_project'
34,24,error,E1136:Value 'self.config' is unsubscriptable
35,8,error,E1101:Instance of 'RpcProxy' has no 'execute' member
39,27,error,E1136:Value 'self.config' is unsubscriptable
40,23,error,E1101:Instance of 'RpcProxy' has no 'get_connection' member
--------------------------------------------------------------------
Your code has been rated at -0.83/10 (previous run: -0.83/10, +0.00)
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
TMSyntax.ts:47 Overwriting grammar scope name to file mapping for scope source.ruby.
Old grammar file: file:///c%3A/Users/chris.platts/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/extensions/ruby/syntaxes/ruby.tmLanguage.json.
New grammar file: file:///c%3A/Users/chris.platts/.vscode-insiders/extensions/rebornix.ruby-0.20.0/syntaxes/ruby.cson.json
e.register @ TMSyntax.ts:47
console.ts:136 [Extension Host] vscode-icons is active! (at activate (C:\Users\chris.platts\.vscode-insiders\extensions\robertohuertasm.vscode-icons-7.27.0\out\src\index.js:44:13))
console.ts:136 [Extension Host] Git extension API method 'getGitPath' is deprecated. (at c.r.value (c:\Users\chris.platts\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\git\dist\main.js:53:45010))
Issue Analytics
- State:
- Created 5 years ago
- Comments:23
Top Results From Across the Web
Visual Studio Code Python Timeout waiting for debugger ...
Open the launch.json file and add the following configuration: { "name": "Python: Debug Console", "type": "python", "request": "launch", ...
Read more >Debugging with GDB - sourceware.org
The purpose of a debugger such as GDB is to allow you to see what is ... Set the timeout (in seconds) of...
Read more >GNU GRUB Manual 2.06
Troubleshooting : Error messages produced by GRUB ... then GRUB will display the menu and then wait for the timeout set by '...
Read more >User and Workspace Settings - Visual Studio Code
To modify user settings, you'll use the Settings editor to review and change VS Code settings. To open the Settings editor, use the...
Read more >Reference: Error log messages — ihsdiag documentation
The non-IBM Installation Manager IHS Archive install allows a 64-bit IHS to ... a browser might time out waiting for the response and...
Read more >Top Related Medium Post
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
Marking this as
needs decision
andtype-enhancement
so the team can consider making this a documented feature for the debugger.Hi Don,
I might’ve underplayed it a bit in the original report. This is happening much more regularly than ‘occasionally’. It’s reliably happening on every relaunch of a debug session after terminating the first session. The only workaround is to
Reload Window
.Another thing I’ve noticed – the problem doesn’t appear to occur with the following chain of events:
However, if the entire debug session is stopped by hitting the red
stop
button on the debug toolbar multiple times to kill all sessions, then restarted with F5, the issue happens.