To use the IDE's debugging features in the IDE to debug the Ryu app, you can do this:
Create a new Python program :
1 #!/usr/bin/env python2 #-*-coding:utf-8-*-3 4 ImportSYS5 6 fromRyu.cmdImportManager7 8 9 defMain ():Ten #Replace the/home/tao/workspace/python/ryu_test/app/simple_switch_lacp_13.py with the full path to the script you want to debug . OneSys.argv.append ('/home/tao/workspace/python/ryu_test/app/simple_switch_lacp_13.py') ASys.argv.append ('--verbose') -Sys.argv.append ('--enable-debugger') - Manager.main () the - if __name__=='__main__': -Main ()
Choose Debug this script, and the compiler can navigate to the breakpoint you set in the script you want to execute.
Resources:
Https://www.mail-archive.com/ryu-devel%40lists.sourceforge.net/msg08505.html
Debug Ryu application in Pycharm (how to debug Ryu applications in Pycharm or other IDEs)