When I press F5, nothing happens. When I go to the Run and Debug panel, and click on the debug play button, nothing happens.
And I really mean absolutely nothing happens: no popups, no errors, no messages, no debug terminal, no logs (that I can find), nada.
Exactly the same here problem here. Debugging the exact same script works in vscode, so I simply go use it when needed.
Did anyone perhaps figure it out? Any hints? My setup is Big Sur, mid 2015 macbook pro, latest cursor of course…
I’ve found this problem recently as well. Windows, it worked for a long time, now it does not. I’ve tried wiping cursor and all settings in %appdata% etc.
I installed vscode, it works fine.
New empty directory with no launch.json. test.py does nothing but print hello world. If I choose “run” it runs fine. If I chose “debug python file” the debug bar flashes briefly, then disappears.
Output>>Python shows just:
2024-06-30 00:57:22.683 [info] DAP Server launched with command: C:\Users\dan\AppData\Local\Programs\Python\Python310\python.exe c:\Users\dan.cursor\extensions\ms-python.python-2023.14.0-universal\pythonFiles\lib\python\debugpy\adapter
I’ve also un- and re-installed the python extension, python itself, rebooted, un-and-reinstalled cursor several times. I created a new windows user account, installed fresh there, same problem.
I finally hacked my way around this. The directory:
C:\Users\dan\AppData\Local\Programs\Python\Python310\python.exe c:\Users\dan.cursor\extensions\ms-python.python-2023.14.0-universal\pythonFiles\lib\python\debugpy\adapter
didn’t exist - the \lib subdirectory wasn’t there. But I found this elsewhere on the machine (vscode install? not sure):
\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy
renamed libs to lib, put it where cursor was expecting to find it, anda gainst all odds it worked.
Same problem. In my case using python3 from XCode on Mac - working fine in VSCode. Seems to be having trouble saving keys? Also output seems to show trying to run python (not python3) at some point even though debug environment launches using python3
2024-09-29 12:51:14.812 [info] Experiment 'pythonaa' is active
2024-09-29 12:51:14.812 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-09-29 12:51:14.812 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-09-29 12:51:14.812 [info] Experiment 'pythonTestAdapter' is active
2024-09-29 12:51:14.812 [info] Test server listening.
2024-09-29 12:51:14.820 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-09-29 12:51:14.820 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-09-29 12:51:14.820 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-09-29 12:51:14.820 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-09-29 12:51:14.823 [info] > python -c "import sys;print(sys.executable)"
2024-09-29 12:51:14.826 [error] [Error: Command failed: python -c "import sys;print(sys.executable)"
/bin/sh: python: command not found