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 <iwase.yusu...@gmail.com> wrote: > 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; > > $ python -d ./bin/ryu-manager > > Or modify the shebang line of ryu-manager; > > $ git diff > diff --git a/bin/ryu-manager b/bin/ryu-manager > index 28979a1..d71b231 100755 > --- a/bin/ryu-manager > +++ b/bin/ryu-manager > @@ -1,4 +1,4 @@ > -#!/usr/bin/env python > +#!/usr/bin/env python -d > > # Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation. > # > > > Thanks, > Iwase > > > > On 2017年10月19日 09:47, Carlos Ferreira wrote: >> >> 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 <iwase.yusu...@gmail.com> wrote: >>> >>> 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 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 sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Ryu-devel mailing list >>>> Ryu-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Ryu-devel mailing list >> Ryu-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/ryu-devel >> > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel