in reply to How a baisc debugging effort restored my sanity!

yes, ptkdb is a real cool, it rocks sooo much!
Actually it is a bit pity that it is not used quite often

me - I used it couple years ago, now I almost do not use it, only very very occasionally.

You must be careful sometimes - when you move mouse over variable that expands into large structure - it could eat all memory and thus hung.
but this is quite easy to cope with.

And I happen to reorganize it into Devel::tcltkdb, it uses Tcl::Tk which is a modernized perl/Tk.

And also I plan to rename tcltkdb to just 'tkdb' at next release.

Regards,
vkon

  • Comment on Re: How a baisc debugging effort restored my sanity!

Replies are listed 'Best First'.
Re^2: How a baisc debugging effort restored my sanity!
by Tux (Canon) on Mar 02, 2011 at 07:14 UTC

    Tcl::Tk might - in your opinion - be a modernized perl/Tk, but it doesn't build on any platform, which makes it quite useless to start with.

    I also browsed google to find if someone posted a fix for the failing prereq in Tk, but the suggested "tklib" is not available on my Linux distribution.

    I must also add that Tk is very actively maintained by Slaven Rezić. At the moment I post this, the last commit was done on 2011-02-24 23:18:56, less than a week ago.


    Enjoy, Have FUN! H.Merijn
      all those CPAN reports are bogus and useless - pick any of those:
      ------------------------------ PROGRAM OUTPUT ------------------------------ Output from '/usr/local/bin/perl5.13.10 Makefile.PL': no display name and no $DISPLAY environment variable while executing "load /usr/lib/libtk8.4.so.0 Tk" ("package ifneeded" script) invoked from within "package require Tk" (file "test-for-tk.tcl" line 1) Your Tcl installation (tclsh) fails to find Tk package.
      What use of smoke report without underlying library?

      Also, Tcl::Tk, Tkx and Tcl CPAN packages have mailing list where you could have your questions answered.

      perl/Tk development is something that is not very inspiring me - Slaven is doing number of efforts and this is certainly deserves much of a respect - but this is mostly wasted efforts, because most of this code is already available in tcl/tk itself.

      okay, I think I should take more care of those bogus reports from testers

        Right, so most smoke reports should skip it. But I know some cpansmokers use fake $DISPLAY's to have modules pass/fail. e.g. see my Tk::Clock based on Tk. (Feel free to steal from Makefile.PL).

        Anyway, I tried to install all modules you mentioned. They all failed because of missing prereq's that are not mentioned in the docs. After I installed the missing tk packages (on OpenSUSE 11.3), I still got:

        $ cpan Tcl::pTk Devel::tcltkdb : : Running make test PERL_DL_NONLAZY=1 /pro/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/after.t ..................... ok : t/fileevent.t ................. Can't locate sys/ioctl.ph in @INC (@IN +C contains: /home/merijn/.cpan/build/Tcl-pTk-0.85-MFvlEW/blib/lib /ho +me/merijn/.cpan/build/Tcl-pTk-0.85-MFvlEW/blib/arch /pro/lib/perl5/si +te_perl/5.12.2/i686-linux-64int-ld /pro/lib/perl5/site_perl/5.12.2 /p +ro/lib/perl5/5.12.2/i686-linux-64int-ld /pro/lib/perl5/5.12.2 .) at / +home/merijn/.cpan/build/Tcl-pTk-0.85-MFvlEW/blib/lib/Tcl/pTk/Widget.p +m line 2144. t/fileevent.t ................. Dubious, test returned 2 (wstat 512, 0 +x200) Failed 2/2 subtests t/fileevent2.t ................ Can't locate sys/ioctl.ph in @INC (@IN +C contains: /home/merijn/.cpan/build/Tcl-pTk-0.85-MFvlEW/blib/lib /ho +me/merijn/.cpan/build/Tcl-pTk-0.85-MFvlEW/blib/arch /pro/lib/perl5/si +te_perl/5.12.2/i686-linux-64int-ld /pro/lib/perl5/site_perl/5.12.2 /p +ro/lib/perl5/5.12.2/i686-linux-64int-ld /pro/lib/perl5/5.12.2 .) at / +home/merijn/.cpan/build/Tcl-pTk-0.85-MFvlEW/blib/lib/Tcl/pTk/Widget.p +m line 2144. t/fileevent2.t ................ Dubious, test returned 2 (wstat 512, 0 +x200) Failed 1/1 subtests : Running make test PERL_DL_NONLAZY=1 /pro/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/after.t ....... ok : t/text.t ........ can't find package widget::scrolledwindow at /home/m +erijn/.cpan/build/Tcl-Tk-1.04-Mr6h_N/blib/lib/Tcl/Tk.pm line 794. t/text.t ........ Dubious, test returned 2 (wstat 512, 0x200) Failed 3/3 subtests

        But I'm not interested enough to dig any deeper.


        Enjoy, Have FUN! H.Merijn