Perl's Debug Tips

Source: Internet
Author: User

Commands to enter the debug environment of Perl: perl-d perl_file

Set breakpoints: line numbers in the B + Perl code.

Execute to Breakpoint: C represents continue until breakpoint.

Executes the next statement, does not go out of the subroutine: N for next, after the first input n, you can press the space bar directly, the default is still the last command.

Displays the value of the variable: print $_/$line [8] Displays the value of the variable or array.

Delete Breakpoint: line number in the B + Perl code. B * Indicates that all breakpoints are deleted.

Show Breakpoint Condition: L indicates list breakpoint.

Start again: R represents restart.

Stop Debugging: Q indicates quit, quit.

Other commands can be obtained by man/h.

Perl's Debug Tips

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.