Debug Ryu application in Pycharm (how to debug Ryu applications in Pycharm or other IDEs)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.