![]() ![]() ![]() It doesn't matter where the file is located, but its name should match the name of the script on the remote computer. In these steps, we set a simple breakpoint to stop the remote process.Ĭreate a copy of the remote file on the local computer and open it in Visual Studio. There is also an is_client_connected function that returns True if the debugger is attached (note that there is no need to check this result before calling any other debugpy functions). In addition to listen and wait_for_client, debugpy also provides a helper function breakpoint, which serves as a programmatic breakpoint if the debugger is attached. ![]() Install the debugpy package into your environment using pip3 install debugpy. Name = input('Hello! What is your name?\n') On the remote computer, create a Python file called guessing-game.py with the following code: import random Ubuntu for the VM is convenient because Python is installed by default otherwise, see the list on Install a Python interpreter of your choice for additional Python download locations.įor details on creating a firewall rule for an Azure VM, see Open ports to a VM in Azure using the Azure portal. You can easily create a Linux virtual machine on Azure and access it using Remote Desktop from Windows. This walkthrough is based on Visual Studio 2019 version 16.6. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |