Python Debugging methods

Source: Internet
Author: User

First, using the PDB

http://blog.csdn.net/wyb_009/article/details/8896744

Second, using GDB

To configure GDB Pythin support First, the following steps are required:

1, modify the Python-2.6/misc/gdbinit, will

 while $_i < f->f_nlocals

Revision changed to

 while $_i < f->f_code->co_nlocals

2, in the document: ~/.gdbinit, add the following content

SOURCE Python-2.6/misc/gdbinit

Debugging methods

GDB python  Run true_false.py


Third, the use of ipdb

Installation method:

IPDB (Easy_install ipdb)-

Iv. Use of Pudb

Installation method:

Pudb (Easy_install pudb)-based on the curses (class GUI), browse the source code has a good performance

Tutorial

http://python.jobbole.com/82638/
https: // Pypi.python.org/pypi/pudb

Python Debugging methods

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.