-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger did not start #100
Comments
eh sorry .. should this be filed in |
updated to 2020.3.71659, still same problem. |
This bit in your debug configuration: "debugServer": 5678 means that VSCode expects the debug adapter to already be running on port 5678. Unless you're starting it manually in the terminal, it won't work. Removing that line should fix the problem. And this feature is really meant as a debugging facility for developers working on the adapter, so it's not a supported scenario in regular use. I'm curious as to where it came from - do we have a sample config like that somewhere in our docs? |
It looks like the link to the log mistakenly ended up in the middle of a code block, so GitHub didn't treat it as a proper attachment. It hasn't GC'd it yet, though - hopefully this link should keep it up now: |
Was it the only log produced? I'd expect to also see Also, can you try it with |
Sorry .. didnt notice that ended up in code block .. i think i forgot to attach debug.launcher too.. Did a new run with "integratedTerminal" .. attached is the screencast, and debug logs. In the screencast, I ran it twice, the first run with debugServer enabled, and the next run with debugServer disabled. same symptoms .. with debugServer enabled I get a timeout, with it disabled, toolbar simply pops a while and then dissappear without any useful error message. |
Hi I tried to isolate the problem, it seems to be happening when using Attached is a project directory with example. Run |
These helped a lot, thank you! Judging by the screencast, that custom python /foo/bar/ where ['/home/izhar/Devel/dqmt_deploy/bin/python', '/home/izhar/.vscode-insiders/extensions/ms-python.python-2020.3.71659/pythonFiles/lib/python/debugpy/wheels/debugpy', '--connect', '36213', '--adapter-access-token', '408aeafe7f20486c0f16e64a27b27d942fc9e34c7d0a162feb3eb6bf1054c330', '-m', 'morpfw.cli', '-s', '/home/izhar/Devel/dqmt_deploy/dev/dqmt/settings.yml', 'start'] i.e.: .../bin/python .../wheels/debugpy ... -m morpfw.cli ... (note that Looking at the isolated repro, and specifically the source code for the #!"c:\python\3.8-64\python.exe"
import sys
sys.path[0:0] = [
'c:\\temp\\issueisolate\\testdebug',
]
_interactive = True
if len(sys.argv) > 1:
_options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:')
_interactive = False
for (_opt, _val) in _options:
if _opt == '-i':
_interactive = True
elif _opt == '-c':
exec(_val)
elif _opt == '-m':
sys.argv[1:] = _args
_args = []
__import__("runpy").run_module(
_val, {}, "__main__", alter_sys=True)
if _args:
sys.argv[:] = _args
__file__ = _args[0]
del _options, _args
with open(__file__) as __file__f:
exec(compile(__file__f.read(), __file__, "exec"))
if _interactive:
del _interactive
__import__("code").interact(banner="", local=globals()) So this is similar to the situation with So I think this is best treated as a bug on Buildout; at least if their |
Thank you for the explanation! that's useful!.. now that i know where the integration issue is, i'll see what i can do as a workaround. I'll see if upstream buildout can make the option available on the generated Thanks! |
Environment data
Actual behavior
Debugger toolbar appears for a while, and then disappear. Noticed issue started after 2020.3.0 update, before that debugger functioning fine. Both vscode and vscode-insider exhibit the same problem, in multiple computers, all running stock Fedora 30 / 31 installations.
Expected behavior
Debugger starts.
Steps to reproduce:
Additional information
No visible error log appear, so not quite sure what additional info to provide. Attached is some logs which was generated from following command (ref: #87 ).
launch.json
contents:Also a screencast (do tell me if it couldn't be played)
Screencast from 02-04-20 21:13:44.zip
The text was updated successfully, but these errors were encountered: