Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to remote debug neutron?


I am trying to do remote debug on neutron to know some internal details. Below are my env and my questions.


Neutron run on a few CentOS7 nodes. The version is mitaka

My PC is windows10.

My IDE is pycharm 5


I use pydved to do the remote debug. I have used this package many times before and it works very well. What i do is to put below code into the neutron code.

import pydevd
pydevd.settrace('10.**.**.18', port=11111, stdoutToServer=True, stderrToServer=True)

The 10...18 is my PC address.

What I am expecting is that if some API request run into these two line, it will stuck and send the execution information to my IDE. So I can debug.

But the problem is :

The code did stuck at the line as expected. But it does not send execution to my IDE. So I can not debug

Does anyone has done this before? Please share your way or tell me if I missed some part.