Pycharm remote debugging openstack code, pycharmopenstack
The examples in this article share the specific code of pycharm remote debugging openstack for your reference. The details are as follows:
1. Install pycharm Professional Edition
This article installs pycharm 2016.2.3 Professional Edition. There are many online tutorials. I will not describe them in detail here. You only need to download the application on the pycharm official website for installation.
2. pycharm Configuration
(1) first press 1 to open tools> deployment> configuration:
Figure
(2) add server, add server name and transmission mode SFTP, and click OK, as shown in Figure 2:
(3) enter the server information and click OK, as shown in figure 3:
(4) open tools> deployment> browse remote host, as shown in figure 4:
(5) Now you can remotely debug the openstack program, as shown in Figure 5:
(6) After the code is changed, you can upload the code using the upload icon in the upper right corner, as shown in Figure 6:
(7) To facilitate the comparison before and after code modification, you can click the compare icon on the left to compare the current code with the last uploaded code, as shown in figure 7, the comparison result 8 shows the code changes before and after the modification:
(8) Of course, rollback is also supported, that is, the code can be restored to the previous version, as shown in Figure 9:
(9) after the code is modified, open tools> start ssh session to log on to the remote server through ssh and restart the corresponding service, as shown in Figure 10 and Figure 11:
Note: during the above connection to the remote server, if the system prompts Windows 7 sometimes breaks FTP connections on Java 7 if firewall is enabled, you can enter the following content in cmd mode:
netsh advfirewall set global StatefulFTP disable
Summary: From the above process, we can see that pycharm can be used to remotely debug the program. You can also log on to the server through ssh to restart the corresponding service. This allows you to easily debug the program, good luck ~
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.