Pycharm Remote Linux development and debugging code

Source: Internet
Author: User

Pycharm is a very powerful Python development tool, and now a lot of code is finally running on the online environment is Linux, and the development environment may be developed under Windows, which requires regular debugging on Linux, or in Linux to write code, And Pycharm offers a very convenient way. The code steps for implementing remote Linux development and debugging on Windows are as follows:

Configuring Remote Linux host Information

Select Tools--deployment--configuration

Here, you can choose SFTP.

The following is because the first connection, so there will be this hint

Here, the default root path can be

The local path is configured as your Windows native code path to
Deployment path on server This configuration is the route to the code on your Linux
Click OK to save after configuration is complete

At this time, you can see the information of your remote host by Tools--deployment--browse

Configuring Python for Remote Linux

So far, the configuration is complete, and the test begins with

Testing for writing code and debugging on remote Linux

I created a new hello.py file on remote Linux and printed Hello World
Then run on the pycharm on your local windows

Now I make changes to the code file, remember to finish writing the code and click the upload small arrow in the upper right corner, so that you change the code in time to upload to Linux, and then click on the Run

If you do not upload, this time you click on the left of the first icon for comparison, you will be able to see your current code and recently uploaded to the Linux code comparison, this is a very convenient feature

Pycharm Remote Linux development and debugging code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.