Jump to: navigation, search

Difference between revisions of "Nova/RemoteDebugging"

(Preparing the server)
(Preparing the server)
Line 11: Line 11:
  
 
Start pycharm and create a remote debug runtime configuration.  Change the host and port to your IP address and the port you want to use.   
 
Start pycharm and create a remote debug runtime configuration.  Change the host and port to your IP address and the port you want to use.   
 
+
<br>
 
[[File:Pycharm remote debug setup.png|framed|left|Pycharm Remote Debug Configuration]]
 
[[File:Pycharm remote debug setup.png|framed|left|Pycharm Remote Debug Configuration]]
 
+
<br>
 +
<br>
 
Once you have the configuration done, press the bug to start the debugger  
 
Once you have the configuration done, press the bug to start the debugger  
 
+
<br>
[[File:Start_Debbugging.png]framed|left|Start the debugger]
+
[[File:Start Debbugging.png|framed|left|Start the debugger]]
 
+
<br>
 +
<br>
 
You should see the debugger waiting for connection
 
You should see the debugger waiting for connection
 
+
<br>
[[File:Waiting_For_Debbugging.png]framed|left|Waiting for debug connection]
+
[[File:Waiting For Debbugging.png|framed|left|Waiting for debug connection]]
  
 
=== Preparing the client ===
 
=== Preparing the client ===
  
 
First you need to copy the pydev client script to the environment where you are running nova services.
 
First you need to copy the pydev client script to the environment where you are running nova services.

Revision as of 19:40, 13 December 2013

Remote Debugging in Nova

You can use a remote debugger to attach to nova services by specifying the host and port as command line arguments. For example

/usr/local/bin/nova-compute --config-file /etc/nova/nova.conf --remote_debug-host 172.16.245.1 --remote_debug-port 1234

In order to do this you need to have a remote debug server - this wiki describes how to use remote debugging with pycharm. You need a commercial license to do remote debugging with pycharm.

Preparing the server

Start pycharm and create a remote debug runtime configuration. Change the host and port to your IP address and the port you want to use.

Pycharm Remote Debug Configuration



Once you have the configuration done, press the bug to start the debugger

Start the debugger



You should see the debugger waiting for connection

Waiting for debug connection

Preparing the client

First you need to copy the pydev client script to the environment where you are running nova services.