Skip to content

Error message for embedded python adapter timeout #480

@dougransom

Description

@dougransom

Environment data

debugpy version:
1.1.0
OS and version:
Windows 10
Python 3.8 32 bit, embedded in a windows app.
VSCode 1.42.1

Actual behavior

mport debugpy debugpy.listen(5678) ('127.0.0.1', 5678)

A traceback that doesn't help solve the problem:
`Traceback (most recent call last):
File "C:\Python38-32\lib\site-packages\debugpy\server\api.py", line 218, in listen
sock, _ = endpoints_listener.accept()
File "C:\Python38-32\Lib\socket.py", line 292, in accept
fd, addr = self._accept()
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\Unimacro\natlinkutilsbj.py", line 1225, in resultsCallback
self.__inherited.resultsCallback(self, wordsAndNums, resObj)
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\Unimacro\natlinkutilsbj.py", line 672, in resultsCallback
self.inherited.resultsCallback(self, wordsAndNums, resObj)
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\natlink\MacroSystem\core\natlinkutils.py", line 856, in resultsCallback
self.callRuleResultsFunctions(seqsAndRules, fullResults)
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\natlink\MacroSystem\core\natlinkutils.py", line 881, in callRuleResultsFunctions
self.callIfExists( 'gotResults
'+ruleName, (ruleWords, fullResults) )
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\natlink\MacroSystem\core\natlinkutils.py", line 379, in callIfExists
return func(*argList)
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\Unimacro_control.py", line 313, in gotResults_trace
actions.debugActions(traceNum)
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\Unimacro\actions.py", line 850, in debugActions
connect_debugger()
File "C:\Users\dougr\OneDrive\doug\dication_toolbox\Unimacro\actions.py", line 823, in connect_debugger
debugpy.listen(port)
File "C:\Python38-32\lib\site-packages\debugpy_init
.py", line 113, in listen
return api.listen(address)
File "C:\Python38-32\lib\site-packages\debugpy\server\api.py", line 143, in debug
log.reraise_exception("{0}() failed:", func.name, level="info")
File "C:\Python38-32\lib\site-packages\debugpy\server\api.py", line 141, in debug
return func(address, settrace_kwargs, **kwargs)
File "C:\Python38-32\lib\site-packages\debugpy\server\api.py", line 232, in listen
raise RuntimeError("timed out waiting for adapter to connect")
RuntimeError: timed out waiting for adapter to connect`

Expected behavior

An exception thrown indicating I should specify the python executable like debugpy.configure(python="C:\Python\python.exe")

Steps to reproduce:

  1. XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions