Ask Your Question
0

How to remote debug neutron?

asked 2016-07-06 21:55:58 -0600

kramer gravatar image

Hi

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

ENV

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

My PC is windows10.

My IDE is pycharm 5

Step

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-07-11 02:39:19 -0600

kramer gravatar image

I solved this.

http://www.cnblogs.com/kramer/p/5660442.html (http://www.cnblogs.com/kramer/p/56604...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-07-06 21:55:58 -0600

Seen: 100 times

Last updated: Jul 11 '16