remote-debugging

Python stops unexpectedly after 1 minute

Python stops unexpectedly after 1 minute Question: My Python program stops functioning after exactly 1 minute. Regardless of the code’s size, the program stops after exactly 1 minute. Here is some very simple code: import time seconds = 60 print(f"Trying to print ‘Hello’. Wait {seconds} seconds.") for second in range(1,seconds): time.sleep(1) print(f"{second}…") print("Hello") It first …

Total answers: 2

Pycharm doesn't recognize packages with remote interpreter

Pycharm doesn't recognize packages with remote interpreter Question: TL;DR – This is a PyCharm remote interpreter question. Remote libraries are not properly synced, and PyCharm is unable to index properly when using remote interpreter. Everything runs fine. Following is the entire (currently unsuccessful) debug process See update section for a narrowing down of the problem …

Total answers: 3

Pycharm doesn't recognize file or folder with remote interpreter

Pycharm doesn't recognize file or folder with remote interpreter Question: In a file whose only content is def test_sanity(): pass I am trying to run the file, named test_something.py. The folder structure is uv_metadata |—uv_metadata |——tests |———-test_something.py Getting the error ssh://noam.s@ML:2202/home/noam.s/src/uv_metadata/venv/bin/python -u /home/noam.s/.pycharm_helpers/pycharm/_jb_pytest_runner.py –target test_something.py::test_sanity Testing started at 14:34 … sh: 1: cd: can’t cd …

Total answers: 1

Vscode: can't go to definition due to large workspace (python)

Vscode: can't go to definition due to large workspace (python) Question: as my project grows bigger, I can’t use ctrl + left click(or F12) to go to definition in Vscode. I have tested with a new workspace and a single python file. The go to definition feature works well. (I.e. Python and Pylance are functional …

Total answers: 2

VS Code: How do I synchronize workspaces between multiple systems?

VS Code: How do I synchronize workspaces between multiple systems? Question: Update: It turns out that what I really wanted was to be able to do remote development on my laptop, and – if I also did something local on my robot, to have the changes show up on my main development system. Ref: This …

Total answers: 1

Visual Studio does not use current PTVSD version

Visual Studio does not use current PTVSD version Question: Setup I use Visual Studio 2017 (V15.8.9) with python tools. When I try to remote debug using ptvsd I see different versions depending where I import ptvsd. When opening a python console in visual studio in my current environment and import ptvsd, i allways get version …

Total answers: 2

PyCharm – can't use remote interpreter

PyCharm – can't use remote interpreter Question: Strange thing. I just can’t use remote interpreters. I’m 100% sure I saw it before. WTF? I have configured ssh deployment connection and vagrant box. There is nothing interesting under more button. How to add remote interpreter? edit: screenshot from settings → project → project interpreter edit2: problem …

Total answers: 5

Run local python script on remote server

Run local python script on remote server Question: I’m debugging some python script that must run on my virtual machine. And, I prefer to edit the scripts locally(outside of virtual machines). So I find it’s tedious to scp modified scripts to virtual machines every time. Can anyone suggests some effective way? Particularly, I’m wondering if …

Total answers: 5

How to debug a remote python application with (Python Tools for) Visual Studio?

How to debug a remote python application with (Python Tools for) Visual Studio? Question: According to http://pytools.codeplex.com/, PTVS supports “Local and remote debugging”. However, I couldn’t find anything related to it or. So I’m curious if their “remote debugging” is simply attaching to a running process on the same machine or if there’s some actual …

Total answers: 3

How do I start up remote debugging with PyCharm?

How do I start up remote debugging with PyCharm? Question: I’m trying to get debugging up between PyCharm (on windows host) and a debian virtual host running my django application. The instructions say to install the egg, add the import, and then invoke a command. I assume these things need to be done on the …

Total answers: 3