[Ryu-devel] How to enable Python Debug flag?

2017-10-18 Thread Carlos Ferreira
Hello to all I need to enable the Python interpreter Debug flag (-D) How can I do it when calling ryu-manager? Thank you. Carlos Ferreira -- Check out the vibrant tech community on one of the world's most engaging tech

Re: [Ryu-devel] How to enable Python Debug flag?

2017-10-18 Thread Iwase Yusuke
Hi Carlos, Have you tried "--enable-debugger" option? $ ryu-manager --help ...(snip)... --enable-debugger don't overwrite Python standard threading library(use only for debugging) ...(snip)... Thanks, Iwase On 2017年10月18日 23:32, Carlos Ferreira wrote: Hello to a

Re: [Ryu-devel] How to enable Python Debug flag?

2017-10-18 Thread Carlos Ferreira
Yes, I have tried. The sys.flags.debug value remained False. In the meanwhile, I modified my code to be able to start the controller in a different way. Thank you for the support. Carlos On 19 October 2017 at 00:46, Iwase Yusuke wrote: > Hi Carlos, > > Have you tried "--enable-debugger" option

Re: [Ryu-devel] How to enable Python Debug flag?

2017-10-18 Thread Iwase Yusuke
Hi Carlos, Oh, you mean "sys.flags.debug" value? This field is "read only" and cannot be changed from Python script, I guess. https://docs.python.org/3.6/library/sys.html#sys.flags If you want to enable this flag, you need to pass "-d" option to python interpreter when running ryu-manager; $

Re: [Ryu-devel] How to enable Python Debug flag?

2017-10-19 Thread Carlos Ferreira
That was the answer I was looking for :) I didn't know I could start ryu using "python ryu-manager" and passing the -d debug flag to python is exactly what I was looking for. Thank you. Carlos On 19 October 2017 at 02:14, Iwase Yusuke wrote: > Hi Carlos, > > Oh, you mean "sys.flags.debug" value?