-
Notifications
You must be signed in to change notification settings - Fork 142
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
When debugging with pypy the debuggee runs twice #604
Comments
@tonka3000 Can you set |
Sure. Sometimes I also got this stack trace in the terminal during starting. Traceback (most recent call last):
File "C:\Programs\pypy\lib-python\3\runpy.py", line 196, in _run_module_as_main
"__main__", mod_spec)
File "C:\Programs\pypy\lib-python\3\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\Users\username\.vscode-insiders\extensions\ms-python.python-2021.5.797839398-dev\pythonFiles\lib\python\debugpy\launcher\__main__.py", line 95, in <module>le>
main()
File "c:\Users\username\.vscode-insiders\extensions\ms-python.python-2021.5.797839398-dev\pythonFiles\lib\python\debugpy\launcher\__main__.py", line 52, in main
launcher.channel.wait()
File "c:\Users\username\.vscode-insiders\extensions\ms-python.python-2021.5.797839398-dev\pythonFiles\lib\python\debugpy\launcher/../..\debugpy\common\messaging.py"py", line 1215, in wait
parser_thread.join()
File "C:\Programs\pypy\lib-python\3\threading.py", line 1044, in join
self._wait_for_tstate_lock()
File "C:\Programs\pypy\lib-python\3\threading.py", line 1062, in _wait_for_tstate_lock
self._stop()
File "C:\Programs\pypy\lib-python\3\threading.py", line 996, in _stop
assert not lock.locked()
AssertionError |
I ran into the same problem. And the internal build cannot be installed successfully. |
I can reproduce the issues. It really seems that @karthiknadig @int19h should we start to officially support/test PyPy? (i.e.: right now we don't officially support it/ it's not in the ci) As a note, pydevd does support PyPy / run it in the ci (so, I think the issues are on the |
I just provided a pull request for the issues in PyPy... this doesn't mean it's officially supported since we don't run it in the ci, but at least it should start-up the debugging properly with this fix. |
I've tried the insiders build after seeing this issue (latest stable release was complaining about pypy with
The Python path in your debug configuration is invalid
). There error message that there is no valid config is gone (and vscode also show the pypy in the status bar), but the debugger will be started twice and so I get an error popup every time I start my script.I always get the error
Server[pid=18868] is already being debugged.
when I try to run my script viaF5
. My test script is justprint("test")
. Thetest
is showed in the terminal and debugging works! My terminal output looks like followingIt seems that your extension try to run the debugger twice.
I'm using the lastest x64 version of pypy for windows.
Greetings
Michael
Originally posted by @tonka3000 in microsoft/vscode-python#16042 (comment)
The text was updated successfully, but these errors were encountered: