Debugging a Python program with IPDB

Source: Internet
Author: User

==>Installation

Pip Install ipdb

==> Use

---> python-m ipdb xxx.py

Inside the program:

From ipdb import Set_traceset_trace ()

Enter (repeat last command) C (continue) L (find where it is currently) s (go to subroutine) R (run until subroutine ends)! <python command >h (Help) A (RGS) prints the parameters of the current function J (UMP) let the program jump to the specified number of lines L (IST) can list the code block that is currently going to run (EXT) Let the program run the next line, if the current statement has a A function call, with N is one of the most useful commands that does not enter P (rint) in the called function body, prints a variable q (uit) exit Debug R (Eturn) to continue execution until the function body returns s (TEP) similar to n, but if there is currently a function call, then s will enter the body of the function being called


Debugging a Python program with IPDB

Related Article

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.