Adding tests to and refactoring the perl debugger - Grant Report #2
Fri, 07-Sep-2012 by
Alan Haggai Alavi
edit post
*Shlomi Fish reported:*
> **2012-Sep-01**:
>
> * Plans for today:
> 1. Report the segfaults in `Devel::Cover`.
> - Done:
> - [https://rt.cpan.org/Ticket/Display.html?id=79338](https://rt.cpan.org/Ticket/Display.html?id=79338)
>
> 2. Add more tests.
>
> 3. Respond to this message by Rocky Bernstein:
> - [http://www.nntp.perl.org/group/perl.perl5.porters/2012/08/msg191414.html](http://www.nntp.perl.org/group/perl.perl5.porters/2012/08/msg191414.html)
> - Done:
> - [http://www.nntp.perl.org/group/perl.perl5.porters/2012/09/msg191426.html](http://www.nntp.perl.org/group/perl.perl5.porters/2012/09/msg191426.html)
>
> 4. Blog about the grant on my blogs.perl.org blog
> - Also mention the new CPAN distributions I have uploaded.
> - Mention the fact I made use of the `b [filename]:[line]` feature
> for debugging Games-Solitaire-Verify.
> - Done:
> - [http://blogs.perl.org/users/shlomi_fish/2012/09/grant-for-improving-the-perl-debugger-new-cpan-distributions.html](http://blogs.perl.org/users/shlomi_fish/2012/09/grant-for-improving-the-perl-debugger-new-cpan-distributions.html)
>
> **2012-Sep-02**:
>
> * Plans for today:
>
> * Handle the correspondence on:
> - [http://www.nntp.perl.org/group/perl.perl5.porters/2012/09/msg191426.html](http://www.nntp.perl.org/group/perl.perl5.porters/2012/09/msg191426.html)
> - Done:
> - TODO : Add link.
>
> * Handle Rocky's comment on:
> - [http://news.perlfoundation.org/2012/08/2012q3-grant-proposal-adding-t.html](http://news.perlfoundation.org/2012/08/2012q3-grant-proposal-adding-t.html)
>
> * Put a reminder on [https://rt.perl.org/rt3/Ticket/Display.html?id=114284](https://rt.perl.org/rt3/Ticket/Display.html?id=114284)
> for applying the patch there.
> - Done.
>
> * Write more tests for the debugger.
>
> * I added a test for the `L` command, but it only checks that breakpoints
> are listed and not watch expressions and actions.
> - More tests are needed for it.
>
> **2012-Sep-04**:
>
> * Plans for today:
> * Write more tests for the `L` command.
> - Done.
>
> * Write more tests in general.
> - Wrote some for `S`. There are more commands in `perldoc perldebug`
> following it that already have test coverage.
>
> **2012-Sep-05**:
>
> * Handled the merging of my existing branch into blead, now that the patch
> with some of my changes was incorporated into blead:
> - [https://rt.perl.org:443/rt3/Ticket/Display.html?id=114644](https://rt.perl.org:443/rt3/Ticket/Display.html?id=114644)
>
> * Reported a bug with a new patch:
> - [https://rt.perl.org:443/rt3/Ticket/Display.html?id=114756](https://rt.perl.org:443/rt3/Ticket/Display.html?id=114756)
>
> **2012-Sep-06**:
>
> * Added a test for the `a [line] command` command and noticed a failure (which
> had been reported to perl5-porters).
> - Corrected the `lib/perl5db.pl` and test now passes.
>
> * Added a test for the `A line` command.
>
> * Added a test for the `A *` command.
>
> * Added two Bash functions to my `_Theme perl/core` to facilitate
> testing the entire perl core distribution, and running only `lib/perl5db.t`.
Comments (1)
I would like to see the ability to run module tests as if under perl -d. There are some differences between the debugger environment and the pure interpreter that can break things in the debugger.
Allowing test suites to run via test_harness using the developer would help catch those problems. It could also generate reports of edge cases and such that could help to make the debugger itself more robust.