Pycharm remote debugging openstack graphic tutorial,
Today, I want to talk about how to remotely debug openstack. The first tool we use is Pycharm.
1. first introduce the environment
My openstack is installed with rdo in one click and installed on a centos Virtual Machine. the IP address of the virtual machine is 192.168.102.129.
2. creation process
First, load the remote python interpreter. For example, if your openstack is installed on a virtual machine, it is the python on your virtual machine. Here we take remote debugging of nova as an example.
2.1 create a project path first
2.2 load the remote Interpreter
Set remote
2.3 set path strength ing
2.4 download source code to your local device
Click the icon in red to display the following information:
Right-click to download the local code.
Then the code will be synchronized locally.
2.5 start the debugging process
The following uses the nova-api as an example. Therefore, we need to copy the nova-api startup code to a local project and test the nova-api under the source code of the virtual machine, must be consistent with the local code
2.6 modify source code settings for debugging
The startup process parameter is not required to modify the source code.
This allows debugging.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.