What are some good Perl debugging methods?

前端 未结 18 1101
南笙
南笙 2020-12-12 21:12

Are there other ways for debugging Perl programs apart from Data::Dumper and perl -d?

18条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 21:46

    Test::More for writing basic tests, Hook::LexWrap, Test::MockObject, Test::Deep, Test::MockTime, Test::WWW::Mechanize and many others for advanced tests.

    Attribute::Signature for checking sub parameters. Carp::Assert for contract-based programming.

    Devel::Ebug::Wx or Devel::ptkdb (and soon better support in Padre) can be used for easier debugging.

提交回复
热议问题