In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to set up remote debugging in pycharm. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
By setting up a server, python can synchronize the code to the server through pycharm, and debug the uploaded python code using the server's development environment, which can not only cooperate with the code development, but also keep the debugging environment consistent.
Generally, when you build a server that uses the linux system, you need to build the sftp on the linux server first. Search the Internet for the construction method. The code and debugging environment are all debugged by sftp. Of course, the python environment is also essential, which can be realized through the Anaconda integrated environment.
After the environment is set up, let's talk about how to configure it on pycharm.
To configure the sharing of python files, in the file menu of pycharm, open setting, pop up the system configuration interface, click Deployment on the left, click the plus sign on the interface, and add a server configuration. In the server configuration, fill in the ip address, port, user name and password and other information. In the mappings configuration page, map the path of the server and the path of the machine. After the configuration is complete, click OK.
Corresponding configuration step diagram:
After the configuration is completed, right-click on the project to upload the file. After the upload is completed, check on the server to see if the file exists. If the configuration is successful, the configuration is successful.
After the file synchronization configuration is completed, you need to configure the debugging environment of python, or in the interface of setting. Click Project Interpreter under Project to see the current configuration environment of python. Click the gear sign in the upper right corner to add a new python debugging environment.
Fill in host, User and other information, and select the execution directory of python. This needs to be configured according to the location where python is installed on the server, and then you can use the server environment for debugging. Each time you debug, upload the code to the server.
The above is how to set up remote debugging in the pycharm shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.