ptkdb-user Mailing List for ptkdb
Brought to you by:
svetoslavm
You can subscribe to this list here.
2007 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: xiaoqi s. <shi...@gm...> - 2009-10-26 17:14:45
|
Hi, I'm trying to use ptkdb to debug cgi script interactively during the browser. I followed the instruction(see follow) but nothing prompt out when I launch the cgi script on web. add in cgi script #!/usr/bin/perl -d:ptkdb sub BEGIN { $ENV{DISPLAY} = "localhost:0.0" ; } run xhost +webserver Has anyone met the some problem as I do? Thanks! Shirley |
From: <hru...@ya...> - 2009-05-04 19:51:55
|
I am trying to examine an item that is over 3 million characters in length. When I look in the expression box I can clearly see the start of the item. If I use the left and right arrows to move the item to the left or right this works fine. But if I use the scroll bar this does not work at all. What I see looks like characters overwritten with an almost solid line of black. Environment is Ubuntu 8.0.4. |
From: Cheok Y. C. <yc...@ya...> - 2008-11-06 09:48:19
|
OK. I temporary solve the problem by comment out the line ## *CORE::GLOBAL::exit = \&exit; I try to test whether TK/Perl debugging tool still work by (1) ssh -X root@remotemachine (2) cat cheok.cgi #!/usr/bin/perl5 -Twd:ptkdb print "Hello World From Cheok.\n"; print "Good Bye World.\n"; (3) /usr/bin/perl5 -T cheok.cgi OK. The GUI windows shown up, and I can perform step debugging. Now, I try to test on the web site. I want to start my apache in single process mode. Hence, I edit the following files /usr/local/apache_modperl/bin/apachectl /etc/init.d/apache to content (I just add -X flag) case "$1" in start) log_begin_msg "Starting $NAME 1.3 web server..." if $ENV $SSD --start --pidfile $PIDFILE --make-pidfile $PIDFILE --exec $DAEMON --oknodo --verbose -- -X -f $CONF; then Then I run yanchengdev:/$ /usr/local/apache_modperl/bin/apachectl stop Stopping apache 1.3 web server.... yanchengdev:/$ /usr/local/apache_modperl/bin/apachectl start Starting apache 1.3 web server...GnuPlot already exists in [/tmp/]. Skipping copy. PRELOADING SCRIPTS... Regenerating autold...done. [notice] Apache::DB initialized in child 17975 GnuPlot already exists in [/tmp/]. Skipping copy. PRELOADING SCRIPTS... Regenerating autold...done. I use my browser to request cheok.cgi The web page is displayed at browser. But there are no GUI debugger windows at all. I check the error log file in apache, there isn't any error :( Any hint? I am lost... Cheok |
From: Cheok Y. C. <yc...@ya...> - 2008-11-05 14:38:21
|
Hi, I wish to setup a GUI debugging environment for my CGI, which is running using apache mod_perl I update the following file (/usr/local/apache_modperl/conf/httpd.conf) to the below content :- ### Start to hack by Cheok <Perl> use Apache::DB(); Apache::DB->init; </Perl> <Location /> PerlFixupHandler Apache::DB </Location> ### End to hack by Cheok and the following file (/usr/local/lib/perl/5.8.8/Apache/DB.pm) if (!$loaded_db) { # Fallback # require 'Apache/perl5db.pl'; # Hacked by Cheok require Devel::ptkdb; } When I launch a web site, I get the following error log :- [yanchengdev] [modperl] Prototype mismatch: sub CORE::GLOBAL::exit: none vs (;$) at /usr/local/lib/perl/5.8.8/Tk.pm line 414. [failed] [Connection refused] [yanchengdev] [modperl] [Wed Nov 5 10:48:53 2008] [notice] child pid 15698 exit signal Segmentation fault (11) [success] [yanchengdev] [modperl] Prototype mismatch: sub CORE::GLOBAL::exit: none vs (;$) at /usr/local/lib/perl/5.8.8/Tk.pm line 414. [failed] [Connection refused] [yanchengdev] [modperl] [Wed Nov 5 10:48:54 2008] [notice] child pid 15699 exit signal Segmentation fault (11) [success] Any hint on the problem? Is it because I am editing the wrong files (httpd.conf and DB.pm). I search through my Linux machine, I get the following files for DB.pm and httpd.conf /etc/apache/httpd.conf /usr/share/apache/default-configs/apache-ssl/httpd.conf /usr/share/apache/default-configs/apache/httpd.conf /usr/share/apache/default-configs/apache-perl/httpd.conf /usr/share/doc/apache/examples/httpd.conf /usr/local/apache_proxy/conf/httpd.conf /usr/local/apache_modperl/conf/httpd.conf <--- I am editing this one /usr/share/perl5/Locale/Object/DB.pm /usr/share/perl5/DBIx/Class/DB.pm /usr/share/perl/5.8.8/DB.pm /usr/local/lib/perl/5.8.8/Apache/DB.pm <--- I am editing this one Thanks! Cheok |
From: Gilbert R. <gi...@di...> - 2008-07-15 12:00:37
|
Hi, I have been trying to follow this article http://article.gmane.org/gmane.comp.apache.mod-perl/7562/match=ptkdb to get ptkdb working with apache2 I get Prototype mismatch: sub CORE::GLOBAL::exit: none vs (;$) at /usr/lib/perl5/Tk.pm line 397. I don't know if I can blindly apply the patches since my versions are not the same as indicated in the article. Any suggestions or how to? I am using Server version: Apache/2.2.3 libdevel-ptkdb-perl 1.1091-1 I put the below in my httpd.conf PerlModule Apache::DB <IfDefine PERLDEBUG> <Perl> Apache::DB->init; </Perl> <Location /> PerlFixupHandler Apache::DB </Location> </IfDefine> -- Gilbert Rebeiro Dido Internet INC Tel/Fax: 514-990-4444 IT Support - website Hosting - Email Solutions - Internet Access |
From: Svetoslav M. <sve...@gm...> - 2007-07-31 05:54:00
|
Hi Struan , I think it will be good to keep showing contents of a variable as it is, without clicking a button/keyboard shortcut because it's 1. easy and a 2. lot of debuggers do use that feature, mouse over a variable and content is shown. About the right click button I agree that it can be improved I've been thinking about - Copy - Copy (with line numbers) - Copy file path (e.g. /var/www/apache/cgi-bin/test.cgi) - Copy file Script URL (e.g. /cgi-bin/test.cgi) What do you mean by dumping variable in /tmp ? Saving contents from Data::Dumper in /tmp ? there are suggestions for .ptkdbrc file to be INI style. How ptkdb's settings will get mixed with Xresources and xrdb ? (due to usage of environment variables ?) Slavi On 7/26/07, Struan Bartlett <str...@ne...> wrote: > > Hi, > > I have a few suggestions for improvement: > > - the balloon view of a variable doesn't work terribly well for me. Not > all data structures in my code fit inside the balloon, and employing the > balloon prevents what I believe would be a more useful functionality: > having a popup menu appear when clicking the right mouse button on a > variable. This menu could have an option to view the variable in the > expression frame. A consequence of this is that right-clicking to step > through the code would have to be disabled, but I prefer to use the > keyboard or else click the 'step' button. Further, this context menu > could also in due course be employed to provide other options such as > dumping the data structure to a file in /tmp or to stdout or, used on > function of method calls, to search for their definitions in the code. > If anyone's interested I have a proof-of-concept patch. > > - there are some environment variables I like to set, that there don't > seem to be Xresources for. Anyhow, I find Xresources a pain to use and > maintain. Putting them in my .bashrc is an option, but it's not modular > or easily shareable. Instead, I would like to be able to define these > variables inside ~/.ptkdbrc. e.g. > > struan$ cat /home/struan/.ptkdbrc > $ENV{'PTKDB_SCROLLBARS_ONRIGHT'}=1; > $ENV{'PTKDB_CODE_SIDE'} = 'right'; > $ENV{'PTKDB_GEOMETRY'} = '1024x768'; > > This would make it easy to define variables, avoid the need to mess with > Xresources and xrdb, and make it easy to share my configuration with > colleagues too. I think this is easy to implement, and if anyone's > interested I have a proof-of-concept patch for this too. > > Kind regards, > > Struan > > -- > ____________________________________ > Struan Bartlett > NewsNow Publishing Limited > http://www.NewsNow.co.uk > Tel: +44 (0)20 7471 0400 > ____________________________________ > Internet Press Cuttings & > Real-time News > > > Corporate press alerts > > Competitor awareness > > Market awareness > > Tailored news for web sites > > Intranet newsfeeds > ____________________________________ > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Ptkdb-user mailing list > Ptk...@li... > https://lists.sourceforge.net/lists/listinfo/ptkdb-user > -- Svetoslav Marinov Developer, CA: +1 905 359 5812 US: +1 716 514 8880 http://seofilter.com http://devquickref.com http://devcha.blogspot.com http://ptkdb.sourceforge.net http://www.phpclasses.org/browse/author/166391.html |
From: Struan B. <struan.bartlett@NewsNow.co.uk> - 2007-07-26 17:36:01
|
Hi, I have a few suggestions for improvement: - the balloon view of a variable doesn't work terribly well for me. Not all data structures in my code fit inside the balloon, and employing the balloon prevents what I believe would be a more useful functionality: having a popup menu appear when clicking the right mouse button on a variable. This menu could have an option to view the variable in the expression frame. A consequence of this is that right-clicking to step through the code would have to be disabled, but I prefer to use the keyboard or else click the 'step' button. Further, this context menu could also in due course be employed to provide other options such as dumping the data structure to a file in /tmp or to stdout or, used on function of method calls, to search for their definitions in the code. If anyone's interested I have a proof-of-concept patch. - there are some environment variables I like to set, that there don't seem to be Xresources for. Anyhow, I find Xresources a pain to use and maintain. Putting them in my .bashrc is an option, but it's not modular or easily shareable. Instead, I would like to be able to define these variables inside ~/.ptkdbrc. e.g. struan$ cat /home/struan/.ptkdbrc $ENV{'PTKDB_SCROLLBARS_ONRIGHT'}=1; $ENV{'PTKDB_CODE_SIDE'} = 'right'; $ENV{'PTKDB_GEOMETRY'} = '1024x768'; This would make it easy to define variables, avoid the need to mess with Xresources and xrdb, and make it easy to share my configuration with colleagues too. I think this is easy to implement, and if anyone's interested I have a proof-of-concept patch for this too. Kind regards, Struan -- ____________________________________ Struan Bartlett NewsNow Publishing Limited http://www.NewsNow.co.uk Tel: +44 (0)20 7471 0400 ____________________________________ Internet Press Cuttings & Real-time News > Corporate press alerts > Competitor awareness > Market awareness > Tailored news for web sites > Intranet newsfeeds ____________________________________ |
From: Struan B. <struan.bartlett@NewsNow.co.uk> - 2007-07-18 18:16:24
|
Hi, Please forgive me posting before trolling... I just discovered ptkdb last week and I am tremendously impressed and excited by it! Call me old hat, but I and my team have been labouring away with perl -d for years without realising an open source, quick-and-easy to run, graphical debugger even existed!! Thanks to everyone involved in making ptkdb :-) Now apologies for my impetuousness, but I couldn't help try hacking together some syntax highlighting and here-document display just to get to grips with how ptkdb has been written and whether the code could be extended. Is this something anyone else is interested in? In case so, I've attached some proof-of-concept code. N.B. The code is hurriedly put together, it isn't debugged or optimised for speed, it still has commented-out debug statements in it and it makes ptkdb dependent on Syntax::Highlight::Perl, which may be undesirable. That said, if anyone else would find this useful, I will be happy to try to tidy the patch up and ensure it still runs even if Syntax::Highlight::Perl isn't present on the machine in question. Kind regards, Struan Bartlett -- ____________________________________ Struan Bartlett NewsNow Publishing Limited http://www.NewsNow.co.uk Tel: +44 (0)20 7471 0400 ____________________________________ Internet Press Cuttings & Real-time News > Corporate press alerts > Competitor awareness > Market awareness > Tailored news for web sites > Intranet newsfeeds ____________________________________ |
From: Svetoslav M. <sve...@gm...> - 2007-03-09 21:58:52
|
this is a test message to ptkdb mailing list |
From: Svetoslav M. <sve...@gm...> - 2007-02-19 09:49:10
|
Hi, May join Perl Debugger's development team ? Svet |