Subject: | CGI::Inspect perl and JS bugs |
Hello.
Your YAPC talk on CGI::Inspect was kickass, and now I'm trying to put
the module into use.
I've come across two problems so far.
After an ordinary CPAN install, when I ran inspect() and connected to
the continuity server, I got:
Not a SCALAR reference at
/usr/local/lib/perl5/site_perl/5.8.8/CGI/Inspect/Plugin/CallStack.pm
line 53.
This is in sub print_lexicals:
52 foreach my $var (sort keys %$lexicals) {
53 my $val = Dumper(${ $lexicals->{$var} });
54 $val = escapeHTML($val);
I was able to fix this error by simply removing the scalar dereference,
but I'm not sure what it might have broken:
53 my $val = Dumper( $lexicals->{$var} );
This allowed me to inspect(), but the resulting page was not Super
Pretty the way it was in your demo. It seemed like I wasn't getting the
javascript I expected.
I looked at the JS console and saw these two errors:
Error: syntax error
Source File: http://<snip>.com:8080/js/jquery.ui.all.js
Line: 133, Column: 37
Source Code:
._pos){$.datepicker._pos=$.datepicker.
Error: $(this).dialog is not a function
Source File: http://<snip>.com:8080/mon.js
Line: 17
It would be great to get this all going.
My stats:
FreeBSD 6
Embedded Perl version v5.8.8 for Apache/1.3.41 (Unix) mod_perl/1.31
Firefox 3.0.10
The "automtically open your inspection window via JS" didn't work, but
I'm not too concerned about that.
Thanks for the great module!
Alan