Re: [PHP] PHP debugger

2008-04-30 Thread J. Manuel Velasco - UBILIBET




NOTE: If you are interesting in PHP Debuggers, this is not the mail,
check the start of the thread since after I decided to try JasonPruim
Debug :p we are trying to solve one specific  problem.

Now, to who is following the thread ... don't hung me, but i think the
problem was there was because there was no permission to write in a
logfile.

---> BEGIN failed--compilation aborted at
/home/httpd/bin/esnic/whois.pl line 9.
line9 = use EPP::Client;
right at Client.pm there is the declaration og the log file.

My inexcusable big mistake, don't check the logs before, in fact i saw
it yesterday looking for other thing. But since running the sccript
from command line there was no error... I didn't realise to check them
:-/

Now it works :)

Thank you very much for following and assistance.



Edward Kay escribió:

  
-Original Message-
From: Jason Pruim [mailto:[EMAIL PROTECTED]]

  
  
  
  
Morning,

So looking at those scripts I realized that perl is nothing like php ;)

Is there other info that the different places need? or is it just a
different URL?

I'm wondering why you could do something like:

HTTP://www.myCool.es/?query="$nom.$ext";
	break;
case 'eu';
	$cmd = HTTP://www.myCool.eu/?query="$nom.ext";
	break;
default;
	$cmd = HTTP://www.whois.com/?query="$nom.ext";
break;
}
?>

instead of calling out to a different script?

Also, I noticed that in your script where you have "default:" in your
switch, you have a : instead of a ;


  
  
Actually, the colon is correct: http://uk.php.net/switch

You also need to enclose your string declarations correctly and add the $
before ext, e.g.
$cmd = "http://www.whois.com/?query=$nom.$ext";
or
$cmd = 'http://www.whois.com/?query='.$nom.'.'.$ext;

Edward


  


-- 





RE: [PHP] PHP debugger

2008-04-29 Thread Edward Kay
> -Original Message-
> From: Jason Pruim [mailto:[EMAIL PROTECTED]

> Morning,
>
> So looking at those scripts I realized that perl is nothing like php ;)
>
> Is there other info that the different places need? or is it just a
> different URL?
>
> I'm wondering why you could do something like:
>
> 
> switch(strtolower($ext)) {
> case 'es';
> case 'com.es';
> case 'org.es';
> case 'edu.es';
> case 'gob.es';
>   $cmd = HTTP://www.myCool.es/?query="$nom.$ext";
>   break;
> case 'eu';
>   $cmd = HTTP://www.myCool.eu/?query="$nom.ext";
>   break;
> default;
>   $cmd = HTTP://www.whois.com/?query="$nom.ext";
> break;
> }
> ?>
>
> instead of calling out to a different script?
>
> Also, I noticed that in your script where you have "default:" in your
> switch, you have a : instead of a ;
>

Actually, the colon is correct: http://uk.php.net/switch

You also need to enclose your string declarations correctly and add the $
before ext, e.g.
$cmd = "http://www.whois.com/?query=$nom.$ext";;
or
$cmd = 'http://www.whois.com/?query='.$nom.'.'.$ext;

Edward


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2008-04-29 Thread J. Manuel Velasco - UBILIBET




Iep,

First of all, thank you verfy much to take a moment to check the
scripts, I really appreciate.

About your idea to have only one script that call to the appropiate
command using a switch, I agree, but since I am new here and I am the
only computing guy, I don't have time to restructure the code. I saw
also other code in the Intranet where I'd have done in a different way
easier to maintain, I think, but I have to make this to work and
apparently I don't think  reestructuring the code will solve the
problem, at least in a way that i can understand why the script doesn't
want to run now. Also, the process to build the query and connect to
the registar are different in each case, so maybe it is the reason why
who who implemented this whois webapp has done like this.

If you want to check the site I am trying to fix and have a whole idea
it is at http://whois.ubilibet.com, if you check the tool, the ES
domains has no result at the site. I write to the log the command
construction, copy and paste at the command line at it works.

By other hand your note about the default option I ddin't realise, I am
going to check, but I feel very confused why the command I pass in the
script to the passthru function, is executed from command line with no
error and giving the right result. That's why I focused the problem in
the PHP script.

Thank you very much human debugger :)


Jason Pruim escribió:
Morning,
  
  
So looking at those scripts I realized that perl is nothing like php ;)
  
  
Is there other info that the different places need? or is it just a
different URL?
  
  
I'm wondering why you could do something like:
  
  

  
switch(strtolower($ext)) {
  
case 'es';
  
case 'com.es';
  
case 'org.es';
  
case 'edu.es';
  
case 'gob.es';
  
$cmd = HTTP://www.myCool.es/?query="$nom.$ext";
  
break;
  
case 'eu';
  
$cmd = HTTP://www.myCool.eu/?query="$nom.ext";
  
break;
  
default;
  
$cmd = HTTP://www.whois.com/?query="$nom.ext";
  
break;
  
}
  
?>
  
  
instead of calling out to a different script?
  
  
Also, I noticed that in your script where you have "default:" in your
switch, you have a : instead of a ;
  
  
May be causing some grief :)
  
  
  
On Apr 29, 2008, at 4:54 AM, J. Manuel Velasco - UBILIBET wrote:
  
  
  Hi,


Thanks for the replay, at least the debugger runs and it's easy to
install :)


I am new here, this is a small company and I am the only computing man,
so the person who implemented theses scripts are far away to ask for
something.


Since I deduced there are different whoises scripts because the way to
make the petition is different depending on the domain (es) the query
is to an organization, ESNIC, (eu) query is to another organization,
EURID and for the rest it is executed just the *NIX whois command.


So since the connection, and the data exchange structure are different,
we need diferent scripts.


I attach now the files I metioned in my last email. If anybody can
check why the whois_es script doesn't run... you will be my idol !


Note: I hae change the name os the scripts since they are located in
specific place.


Thanks in advance.


Jason Pruim escribió:


  
On Apr 28, 2008, at 10:58 AM, J. Manuel Velasco - UBILIBET wrote:
  
  
  Ok, so I am going to try this one, Jason
Pruim, let's check how it works ... :p


PROBLEM DESCRIPTION:

In my whois web-app, when a EU doamin is queried, whois.pl perl script
is lunched and I got the right result to my PHP script I the result is
shown at the web.

If I do the query to a ES domain, other whois.pl script is lunched, but
passthru doesn't execute it.

Both scripts are almost the same, they are in the same file structure,
same machine, same permissions...

  
  
Have you tried to use a program to compare the files? Make sure that
only the necessary lines are different?
  
  

The most strange is that I logged the command petition and If I copy
and paste exaclty the same that is passed to passthru, the command for
the whois to ESNIC is executed in the command line and shows the
result.


Collegues told me to check the ENV, permissions, and so on, I did with
no results, also, the other perl script that is almost the same is
executed, so I feel very very lost.


Three files attached:

whois_es.pl -> perl script to query whois in ESNIC

whois_eu.pl -> perl script to query whois in EURID

container.php  -> intermediate page where the commands are build
and passthru is executed.

  
  
Is there any particular reason you are using different perl scripts
instead of a simple whois script for all of them?
  
  
Also... the only attachment was your logo :)
  
  
  
  

Thank you very much for any hint. I feel lost almost one week with this

Re: [PHP] PHP debugger

2008-04-29 Thread Jason Pruim

Morning,

So looking at those scripts I realized that perl is nothing like php ;)

Is there other info that the different places need? or is it just a  
different URL?


I'm wondering why you could do something like:



instead of calling out to a different script?

Also, I noticed that in your script where you have "default:" in your  
switch, you have a : instead of a ;


May be causing some grief :)


On Apr 29, 2008, at 4:54 AM, J. Manuel Velasco - UBILIBET wrote:


Hi,

Thanks for the replay, at least the debugger runs and it's easy to  
install :)


I am new here, this is a small company and I am the only computing  
man, so the person who implemented theses scripts are far away to  
ask for something.


Since I deduced there are different whoises scripts because the way  
to make the petition is different depending on the domain (es) the  
query is to an organization, ESNIC, (eu) query is to another  
organization, EURID and for the rest it is executed just the *NIX  
whois command.


So since the connection, and the data exchange structure are  
different, we need diferent scripts.


I attach now the files I metioned in my last email. If anybody can  
check why the whois_es script doesn't run... you will be my idol !


Note: I hae change the name os the scripts since they are located in  
specific place.


Thanks in advance.

Jason Pruim escribió:



On Apr 28, 2008, at 10:58 AM, J. Manuel Velasco - UBILIBET wrote:

Ok, so I am going to try this one, Jason Pruim, let's check how it  
works ... :p


PROBLEM DESCRIPTION:
In my whois web-app, when a EU doamin is queried, whois.pl perl  
script is lunched and I got the right result to my PHP script I  
the result is shown at the web.
If I do the query to a ES domain, other whois.pl script is  
lunched, but passthru doesn't execute it.
Both scripts are almost the same, they are in the same file  
structure, same machine, same permissions...


Have you tried to use a program to compare the files? Make sure  
that only the necessary lines are different?



The most strange is that I logged the command petition and If I  
copy and paste exaclty the same that is passed to passthru, the  
command for the whois to ESNIC is executed in the command line and  
shows the result.


Collegues told me to check the ENV, permissions, and so on, I did  
with no results, also, the other perl script that is almost the  
same is executed, so I feel very very lost.


Three files attached:
whois_es.pl -> perl script to query whois in ESNIC
whois_eu.pl -> perl script to query whois in EURID
container.php  -> intermediate page where the commands are  
build and passthru is executed.


Is there any particular reason you are using different perl scripts  
instead of a simple whois script for all of them?


Also... the only attachment was your logo :)





Thank you very much for any hint. I feel lost almost one week with  
this BUG.


Jason Pruim escribió:



On Apr 28, 2008, at 10:32 AM, Thijs Lensselink wrote:


Quoting Daniel Brown <[EMAIL PROTECTED]>:


On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET
<[EMAIL PROTECTED]> wrote:


Hello,

Anybody knows a good debugger for PHP and basic usage?


   There's a pretty good one known as Jason Pruim.  ;-P


ROFL!



Yall have too much time on your hands! :P







--

Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting  
at just

$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]






--



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]





--




--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]





Re: [PHP] PHP debugger

2008-04-29 Thread J. Manuel Velasco - UBILIBET




Hi, 

Thanks for the replay, at least the debugger runs and it's easy to
install :)

I am new here, this is a small company and I am the only computing man,
so the person who implemented theses scripts are far away to ask for
something. 

Since I deduced there are different whoises scripts because the way to
make the petition is different depending on the domain (es) the query
is to an organization, ESNIC, (eu) query is to another organization,
EURID and for the rest it is executed just the *NIX whois command.

So since the connection, and the data exchange structure are different,
we need diferent scripts.

I attach now the files I metioned in my last email. If anybody can
check why the whois_es script doesn't run... you will be my idol !

Note: I hae change the name os the scripts since they are located in
specific place. 

Thanks in advance.

Jason Pruim escribió:

  
  On Apr 28, 2008, at 10:58 AM, J. Manuel Velasco - UBILIBET wrote:
  
  
 Ok, so I am going to try
this one, Jason Pruim, let's check how it works ... :p

PROBLEM DESCRIPTION:
In my whois web-app, when a EU doamin is queried, whois.pl perl script
is lunched and I got the right result to my PHP script I the result is
shown at the web.
If I do the query to a ES domain, other whois.pl script is lunched, but
passthru doesn't execute it.
Both scripts are almost the same, they are in the same file structure,
same machine, same permissions...
  
  
  
Have you tried to use a program to compare the files? Make sure that
only the necessary lines are different?
  


The most strange is that I logged the command petition and If I copy
and paste exaclty the same that is passed to passthru, the command for
the whois to ESNIC is executed in the command line and shows the result.

Collegues told me to check the ENV, permissions, and so on, I did with
no results, also, the other perl script that is almost the same is
executed, so I feel very very lost.

Three files attached: 
whois_es.pl         -> perl script to query whois in ESNIC
whois_eu.pl         -> perl script to query whois in EURID
container.php      -> intermediate page where the commands are build
and passthru is executed.
  
  
  
Is there any particular reason you are using different perl scripts
instead of a simple whois script for all of them?
  
  
Also... the only attachment was your logo :)
  
  
  
  


Thank you very much for any hint. I feel lost almost one week with this
BUG.

Jason Pruim escribió:

On Apr 28, 2008, at 10:32 AM, Thijs Lensselink wrote: 
  
  Quoting Daniel Brown <[EMAIL PROTECTED]>: 

On Mon, Apr 28, 2008 at 7:00 AM, J.
Manuel Velasco - UBILIBET 
  <[EMAIL PROTECTED]> wrote: 
  
Hello, 

Anybody knows a good debugger for PHP and basic usage? 
  
  
   There's a pretty good one known as Jason Pruim.  ;-P 


ROFL! 
  
  
  
Yall have too much time on your hands! :P 
  
  
  


-- 
 
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just 
$59.99/mo. with no contract! 
Dedicated servers, VPS, and hosting from $2.50/mo. 
  
-- 
PHP General Mailing List (http://www.php.net/)
  
To unsubscribe, visit: http://www.php.net/unsub.php
  
  
  




-- 
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php



  
  
-- 
  
Jason Pruim 
Raoset Inc. 
Technology Manager 
MQC Specialist 
3251 132nd ave 
Holland, MI, 49424-9337 
  www.raoset.com 
  [EMAIL PROTECTED] 
  
  
  
  


-- 


  
  
  
   
  
  
  --
  
  
  Jason Pruim
  Raoset Inc.
  Technology Manager
  MQC Specialist
  3251 132nd ave
  Holland, MI, 49424-9337
  www.raoset.com
  [EMAIL PROTECTED]
  
  
  
  
  
  


-- 





whois_es.pl
Description: Perl program


whois_eu.pl
Description: Perl program


container.php
Description: application/php
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP debugger

2008-04-28 Thread Daniel Brown
On Mon, Apr 28, 2008 at 12:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
>  Also... the only attachment was your logo :)

The list strips non-text attachments.  Amazingly, embedded
graphics still come through.

-- 

Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2008-04-28 Thread Jason Pruim


On Apr 28, 2008, at 10:58 AM, J. Manuel Velasco - UBILIBET wrote:

Ok, so I am going to try this one, Jason Pruim, let's check how it  
works ... :p


PROBLEM DESCRIPTION:
In my whois web-app, when a EU doamin is queried, whois.pl perl  
script is lunched and I got the right result to my PHP script I the  
result is shown at the web.
If I do the query to a ES domain, other whois.pl script is lunched,  
but passthru doesn't execute it.
Both scripts are almost the same, they are in the same file  
structure, same machine, same permissions...


Have you tried to use a program to compare the files? Make sure that  
only the necessary lines are different?



The most strange is that I logged the command petition and If I copy  
and paste exaclty the same that is passed to passthru, the command  
for the whois to ESNIC is executed in the command line and shows the  
result.


Collegues told me to check the ENV, permissions, and so on, I did  
with no results, also, the other perl script that is almost the same  
is executed, so I feel very very lost.


Three files attached:
whois_es.pl -> perl script to query whois in ESNIC
whois_eu.pl -> perl script to query whois in EURID
container.php  -> intermediate page where the commands are build  
and passthru is executed.


Is there any particular reason you are using different perl scripts  
instead of a simple whois script for all of them?


Also... the only attachment was your logo :)





Thank you very much for any hint. I feel lost almost one week with  
this BUG.


Jason Pruim escribió:



On Apr 28, 2008, at 10:32 AM, Thijs Lensselink wrote:


Quoting Daniel Brown <[EMAIL PROTECTED]>:


On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET
<[EMAIL PROTECTED]> wrote:


Hello,

Anybody knows a good debugger for PHP and basic usage?


   There's a pretty good one known as Jason Pruim.  ;-P


ROFL!



Yall have too much time on your hands! :P







--

Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at  
just

$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]






--



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]





Re: [PHP] PHP debugger

2008-04-28 Thread J. Manuel Velasco - UBILIBET




Ok, so I am going to try this one, Jason Pruim, let's check how it
works ... :p

PROBLEM DESCRIPTION:
In my whois web-app, when a EU doamin is queried, whois.pl perl script
is lunched and I got the right result to my PHP script I the result is
shown at the web.
If I do the query to a ES domain, other whois.pl script is lunched, but
passthru doesn't execute it.
Both scripts are almost the same, they are in the same file structure,
same machine, same permissions...

The most strange is that I logged the command petition and If I copy
and paste exaclty the same that is passed to passthru, the command for
the whois to ESNIC is executed in the command line and shows the result.

Collegues told me to check the ENV, permissions, and so on, I did with
no results, also, the other perl script that is almost the same is
executed, so I feel very very lost.

Three files attached: 
whois_es.pl         -> perl script to query whois in ESNIC
whois_eu.pl         -> perl script to query whois in EURID
container.php      -> intermediate page where the commands are build
and passthru is executed.

Thank you very much for any hint. I feel lost almost one week with this
BUG.

Jason Pruim escribió:

On Apr 28, 2008, at 10:32 AM, Thijs Lensselink wrote:
  
  
  Quoting Daniel Brown
<[EMAIL PROTECTED]>:


On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel
Velasco - UBILIBET
  
<[EMAIL PROTECTED]> wrote:
  
  
Hello,


Anybody knows a good debugger for PHP and basic usage?

  
  
   There's a pretty good one known as Jason Pruim.  ;-P
  


ROFL!

  
  
  
Yall have too much time on your hands! :P
  
  
  
  


--
  

  
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
  
$59.99/mo. with no contract!
  
Dedicated servers, VPS, and hosting from $2.50/mo.
  
  
--
  
PHP General Mailing List (http://www.php.net/)
  
To unsubscribe, visit: http://www.php.net/unsub.php
  
  
  




-- 
PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php



  
  
--
  
  
Jason Pruim
  
Raoset Inc.
  
Technology Manager
  
MQC Specialist
  
3251 132nd ave
  
Holland, MI, 49424-9337
  
www.raoset.com
  
[EMAIL PROTECTED]
  
  
  
  
  


-- 





Re: [PHP] PHP debugger

2008-04-28 Thread Jason Pruim


On Apr 28, 2008, at 10:32 AM, Thijs Lensselink wrote:


Quoting Daniel Brown <[EMAIL PROTECTED]>:


On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET
<[EMAIL PROTECTED]> wrote:


Hello,

Anybody knows a good debugger for PHP and basic usage?


   There's a pretty good one known as Jason Pruim.  ;-P


ROFL!



Yall have too much time on your hands! :P







--

Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2008-04-28 Thread Thijs Lensselink

Quoting Daniel Brown <[EMAIL PROTECTED]>:


On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET
<[EMAIL PROTECTED]> wrote:


 Hello,

 Anybody knows a good debugger for PHP and basic usage?


There's a pretty good one known as Jason Pruim.  ;-P


ROFL!



--

Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2008-04-28 Thread Daniel Brown
On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET
<[EMAIL PROTECTED]> wrote:
>
>  Hello,
>
>  Anybody knows a good debugger for PHP and basic usage?

There's a pretty good one known as Jason Pruim.  ;-P

-- 

Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2008-04-28 Thread James Dempster
I'd suggest Xdebug 

--
/James

On Mon, Apr 28, 2008 at 12:00 PM, J. Manuel Velasco - UBILIBET <
[EMAIL PROTECTED]> wrote:

>  Hello,
>
> Anybody knows a good debugger for PHP and basic usage?
>
> I've found: http://dd.cron.ru/dbg/, what do you think about it ?
>
> Thanks.
> --
>


Re: [PHP] PHP debugger

2008-04-28 Thread Jignesh Thummar
Best one is Xdebug .. But probably i would like to try this one also.

- Jignesh

On Mon, Apr 28, 2008 at 12:00 PM, J. Manuel Velasco - UBILIBET <
[EMAIL PROTECTED]> wrote:

>  Hello,
>
> Anybody knows a good debugger for PHP and basic usage?
>
> I've found: http://dd.cron.ru/dbg/, what do you think about it ?
>
> Thanks.
> --
>


[PHP] PHP debugger

2008-04-28 Thread J. Manuel Velasco - UBILIBET




Hello,

Anybody knows a good debugger for PHP and basic usage?

I've found: http://dd.cron.ru/dbg/, what do you think about it ?

Thanks.
-- 





Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Nobbe
On Feb 9, 2008 3:02 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:

> It suddenly dawned on me that you are doing an echo for every paremeter,
> a debugger will never completely alleviate the need for this, however
> try using:
> print_r(get_defined_vars());
> instead, that way you get everything output that you could need, it's
> often also worth putting an exit(); after prining out so you can see
> where the script is failing; if indeed it is.
>

get_defined_vars() can be a real hassle to sift through, mainly because it
spits out a bunch of data you dont usually want to see.  if you want to see
the values of a given functions parameters w/o an echo statement for each
on the best way is to use, func_get_args();
eg.
die(var_dump(func_get_args()));

also, xdebug has something called function traces; which you dont need to
configure a client for.  it will simply log all function calls to a file and
its
configurable, so you can have it log the values of actual parameters if you
like.  and it also ships w/ a special highlighter for vim, which is quite
nice.
http://xdebug.org/docs/execution_trace

-nathan


Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Rixham
It suddenly dawned on me that you are doing an echo for every paremeter, 
a debugger will never completely alleviate the need for this, however 
try using:

print_r(get_defined_vars());
instead, that way you get everything output that you could need, it's 
often also worth putting an exit(); after prining out so you can see 
where the script is failing; if indeed it is.


Nathan

Nathan Rixham wrote:

zend studio with zend debugger?

Nathan Nobbe wrote:
On Feb 9, 2008 11:48 AM, Mary Anderson <[EMAIL PROTECTED]> 
wrote:



Hi all,
   I am getting tired of writing echo statements for almost every
parameter, then deleting them while I am writing code.   I would really
like a debugger which would work with my browser.  I have run across an
open source one, Xdebug, and would like to hear of other's experience
with it.  2.0.2 is, I believe, the latest release.



hi mary,
using xdebug for debugging involves the selection of a debugging client
besides
just the debugger itself.  with xdebug ive used Eclipse PDT, and
Protoeditor.
PDT was really smooth because if i did something in the browser like,
navigate
away from the current page for example; PDT seemed to capture that.  The
downside of PDT was a lack of directory mapping support (they may have 
it by
now).  what this is, is a way to tell your xdebug client where the 
files on

the
remote server are, that are on your local system (the ones youre 
debugging).

since PDT lacked this feature, i was unable to set breakpoints, which was
very
limiting.
protoeditor is cool, but i had some problems with it as well; in all it
didnt seem
nearly as smooth as PDT and it didnt seem to be able to capture 
navigation

away from the current page in the browser, also quite limiting.
one issue i had w/ PDT was personal confusion with the controls in the 
ui.
sometimes i would have to close down eclipse just to sort of reset 
things.
in general, i think youll find these tools neat to experiment with, 
but when

i was
using them several months back they didnt seem ready for prime time.
perhaps i should give them another look..

-nathan



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Rixham

zend studio with zend debugger?

Nathan Nobbe wrote:

On Feb 9, 2008 11:48 AM, Mary Anderson <[EMAIL PROTECTED]> wrote:


Hi all,
   I am getting tired of writing echo statements for almost every
parameter, then deleting them while I am writing code.   I would really
like a debugger which would work with my browser.  I have run across an
open source one, Xdebug, and would like to hear of other's experience
with it.  2.0.2 is, I believe, the latest release.



hi mary,
using xdebug for debugging involves the selection of a debugging client
besides
just the debugger itself.  with xdebug ive used Eclipse PDT, and
Protoeditor.
PDT was really smooth because if i did something in the browser like,
navigate
away from the current page for example; PDT seemed to capture that.  The
downside of PDT was a lack of directory mapping support (they may have it by
now).  what this is, is a way to tell your xdebug client where the files on
the
remote server are, that are on your local system (the ones youre debugging).
since PDT lacked this feature, i was unable to set breakpoints, which was
very
limiting.
protoeditor is cool, but i had some problems with it as well; in all it
didnt seem
nearly as smooth as PDT and it didnt seem to be able to capture navigation
away from the current page in the browser, also quite limiting.
one issue i had w/ PDT was personal confusion with the controls in the ui.
sometimes i would have to close down eclipse just to sort of reset things.
in general, i think youll find these tools neat to experiment with, but when
i was
using them several months back they didnt seem ready for prime time.
perhaps i should give them another look..

-nathan



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Nobbe
On Feb 9, 2008 11:48 AM, Mary Anderson <[EMAIL PROTECTED]> wrote:

> Hi all,
>I am getting tired of writing echo statements for almost every
> parameter, then deleting them while I am writing code.   I would really
> like a debugger which would work with my browser.  I have run across an
> open source one, Xdebug, and would like to hear of other's experience
> with it.  2.0.2 is, I believe, the latest release.


hi mary,
using xdebug for debugging involves the selection of a debugging client
besides
just the debugger itself.  with xdebug ive used Eclipse PDT, and
Protoeditor.
PDT was really smooth because if i did something in the browser like,
navigate
away from the current page for example; PDT seemed to capture that.  The
downside of PDT was a lack of directory mapping support (they may have it by
now).  what this is, is a way to tell your xdebug client where the files on
the
remote server are, that are on your local system (the ones youre debugging).
since PDT lacked this feature, i was unable to set breakpoints, which was
very
limiting.
protoeditor is cool, but i had some problems with it as well; in all it
didnt seem
nearly as smooth as PDT and it didnt seem to be able to capture navigation
away from the current page in the browser, also quite limiting.
one issue i had w/ PDT was personal confusion with the controls in the ui.
sometimes i would have to close down eclipse just to sort of reset things.
in general, i think youll find these tools neat to experiment with, but when
i was
using them several months back they didnt seem ready for prime time.
perhaps i should give them another look..

-nathan


[PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Mary Anderson

Hi all,
   I am getting tired of writing echo statements for almost every 
parameter, then deleting them while I am writing code.   I would really 
like a debugger which would work with my browser.  I have run across an 
open source one, Xdebug, and would like to hear of other's experience 
with it.  2.0.2 is, I believe, the latest release.


Mary Anderson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Debugger

2007-09-04 Thread Nathan Nobbe
ive been working with xdebug <http://xdebug.org/>lately.
you wont find me paying for zend studio;
im on the open source tip :)

i must admit though, the experience has been anything but painless.
however, if you work w/ legacy spaghetti code, or youre just sick
of writing echo statements on the server,
xdebug is definitely worth trying.

so far ive worked w/ protoeditor and eclipse pdt.  they both have pros / and
cons
but im already used to the eclipse environment, so ill probly settle on pdt.

-nathan
On 9/4/07, Eric Gorr <[EMAIL PROTECTED]> wrote:
>
> I would suggest taking a look at Zend Studio.
>
>
> http://www.zend.com/products/zend_studio
>
>
> On Sep 4, 2007, at 5:28 PM, shiplu wrote:
>
> > Hello,
> >  i need a good php debugger. It should provide the facility of step
> > by step
> > execution in real time.
> > Is there any?
> > Do any of you know about this?
> > I am having a bug. I can't trace where it is.
> >
> > --
> > shout at http://shiplu.awardspace.com/
> >
> > Available for Hire/Contract/Full Time
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] PHP Debugger

2007-09-04 Thread Eric Gorr

I would suggest taking a look at Zend Studio.


http://www.zend.com/products/zend_studio


On Sep 4, 2007, at 5:28 PM, shiplu wrote:


Hello,
 i need a good php debugger. It should provide the facility of step  
by step

execution in real time.
Is there any?
Do any of you know about this?
I am having a bug. I can't trace where it is.

--
shout at http://shiplu.awardspace.com/

Available for Hire/Contract/Full Time


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Debugger

2007-09-04 Thread shiplu
Hello,
 i need a good php debugger. It should provide the facility of step by step
execution in real time.
Is there any?
Do any of you know about this?
I am having a bug. I can't trace where it is.

-- 
shout at http://shiplu.awardspace.com/

Available for Hire/Contract/Full Time


[PHP] Re: PHP debugger

2007-05-26 Thread Jared Farrish

Miles Thompson wrote:

> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.


The following assumes object-oriented programming paradigms are at least
somewhat applied. I would guess functional would be similar, but procedural
code, you might be on your own there...

I actually use two classes that I include at the bottom of all of my library
definitions (in if(!class_exists()){declare}format). One provides warning
and error message storage, the other type assertion. Between the two of
these, I have simple unit testing that I can perform as I am developing a
class, as well as pre-included simple error logging that, when I install
into the greater system, can be incorporated into the systemic error
catching routines without refactoring code, in most cases to weld-on
systemic error routines.

Thinking aloud, getting code to work correctly usually means testing it
against what you expect it to do, so doing that at a very localized level
first can be helpful. Once I started doing this, my implementation issues
somewhat went away. Results (and implementations) may very.


> PS Why are we doing this? Because we are getting tired of debugging
> with Javascript alert()  boxes. /mt


Firebug in Firefox is a very well-developed javascript debugger, featuring
console.log(), which allows you to stop using alert() for error checking.
Very nice! And I put this:


// Solve the firebug extension issue in IE by try/catching and creating a
blank object console.log();
try{console.log();}catch(e){var console=new
Object;console={log:function(){var k=0;}};};


At the head of each js file to prevent errors in IE or other browsers
without Firebug installed.

Example: http://web3.unt.edu/riskman/JS/lem.json.js

--
Jared Farrish
Intermediate Web Developer
Denton, Tx

Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$


Re: [PHP] PHP debugger

2007-05-25 Thread Miles Thompson

On 5/25/07, Jochem Maas <[EMAIL PROTECTED]> wrote:

Miles Thompson wrote:



> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.

I'm not going to jump in there ... I almost drown in that quagmire
everytime I have to get a debugger setup working ... but ...

>
> Regards - Miles Thompson
>
> PS Why are we doing this? Because we are getting tired of debugging
> with Javascript alert()  boxes. /mt
>
> PPS And we are using those because of Joomla!  Some things are buried
> so deeply we cannot use print() or echo(). /mt

2 things:

1. when you have no hair left whatsoever:

var_dump($foo); exit;

2. error_log() is your friend  tail the log and run the code.

just a thought.



Hey Jochem,

It's been a long slog, and I'm still playing with "test" programs to
figure out how things work. It sure isn't like using a desktop
debugger, especially as we are doing it all remotely.

Thanks for your comments - Miles

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2007-05-25 Thread Jochem Maas
Miles Thompson wrote:



> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.

I'm not going to jump in there ... I almost drown in that quagmire
everytime I have to get a debugger setup working ... but ...

> 
> Regards - Miles Thompson
> 
> PS Why are we doing this? Because we are getting tired of debugging
> with Javascript alert()  boxes. /mt
> 
> PPS And we are using those because of Joomla!  Some things are buried
> so deeply we cannot use print() or echo(). /mt

2 things:

1. when you have no hair left whatsoever:

var_dump($foo); exit;

2. error_log() is your friend  tail the log and run the code.

just a thought.

> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2007-05-16 Thread Miles Thompson

On 5/16/07, Arno Kuhl <[EMAIL PROTECTED]> wrote:

-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]
Sent: 16 May 2007 02:15
To: PHP List
Subject: Re: [PHP] PHP debugger

>
>
> -Original Message-
> From: Miles Thompson [mailto:[EMAIL PROTECTED]
> Sent: 15 May 2007 08:21
> To: PHP List
> Subject: [PHP] PHP debugger
>
>
> I am trying to load a PHP debugger in our most recent build of PHP 5.2.1.
>
> The debugger which I am trying to set up is the free, pre-compiled
> Linux version of dbg ( DBG 2.15.5 dbg modules), from
> http://dd.cron.ru/dbg/, and all of the instructions have been followed
> as posted on the NuSphere site.
>
> Yes, Apache has been stopped and restarted!!
>
> There is no difference in the output from phpinfo(). The line
> "with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko, http://dd.cron.ru";
> does not appear.
>
> PHP is compiled without debugging, but I did consider that was for the
> purpose of debugging PHP itself, not scripts.
>
> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.
>
> Regards - Miles Thompson
< snipped some trivial comments>
>

On 5/16/07, Arno Kuhl <[EMAIL PROTECTED]> wrote:
> If you don't see any change in phpinfo then maybe it's not picking up the
> dbg extension in your php.ini. Presumably you've also put the other
debugger
> directives in your ini?
>
> You can also try download the trial version of PHPEd from Nusphere,
install
> that, and check how it configures the debugger. The trial lasts a month I
> think, so maybe you'll sort out your problems in that time anyway. Just be
> sure to completely uninstall it afterwards because I think the free dbg
> version is not the same as the version integrated in PHPEd. Any version
> differences cause the extension to not load, though in that case it should
> report an error. You can't use the dbg integrated in PHPEd after uninstall
> because it doesn't work without PHPEd.
>
> Arno

From my php.ini 
; added debug extension "dbg.so-5.2.x" and
; see [debugger] section of this file -  20050515 - mthompson
;
extension=dbg.so  ;dbg.so-5.2.x

and the [debugger] section ...
; Added [debugger] section 20050515 - mthompson
; Note:  DBG versions 2.15 (free) does not support debugger.hosts_allow,
; debugger.hosts_deny or debugger.ports settings.
;
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow= <>
debugger.hosts_deny=ALL
debugger.ports=7869, 1/16
; end [debugger] section

Couple of notes:
1. Tried this with extension pointing to both dbg.so and dbg.so-5.2.x.
(The latter is what the instructions specified, but that did not seem
correct.)

2. Also tried it, in combination with above, with  debugger.hosts_allow,
debugger.hosts_deny and debugger.ports all commented out.

3. PHP version is 5.2.1, compiled from source on a Ubuntu Edgy Eft server.

I'm wondering it I should download the source and compile it. That
might be a better way home than assuming the binary is correct.

Arno, your suggestion to install the NuSphere editor is a good one.
I'm just reluctant to add more junk to my Windows box and to allow
something other than atp-get / dselect to mess with server
configuration. (Although it is a development box, so errors are not
terminal!)

Thanks to everyone for suggestions.

Regards - Miles

--

Hi Miles

I'm not sure I follow your configuration - are you running on Windows or
Linux? You shouldn't need to compile anything as far as I'm aware, just use
the binaries.

I'm using PHPEd 5.0 for Windows, so my config won't be the same as yours.

My ini setup is:


extension=php_dbg.dll-4.4.x

[debugger]
debugger.enabled=On
debugger.profiler_enabled=On


I've been using PHPEd for about 3 years so there are several dbg files in my
extensions dir, but the latest is "php_dbg.dll-4.4.x" (that is the actual
file name in extensions directory) which coincides with the name in the ini
file, and the timestamp coincides with the ver 5.0 release date. According
to your description for your Linux box I reckon you should be using
"dbg.so-5.2.x" in your ini file and in your extensions dir.

From previous experience I know the dbg extension is very fussy. You can't
specify more than one dbg in your ini, and the dbg must be the correct one
for your platform and your version of php. You can't change the name of the
file, and if the binary is for one specific ver of php then you must have
that ver of php running. Any error here and it just doesn't work.

Hope that helps

Cheers
Arno



Arno,

Arno,

Thanks for providing the relevant bits of your php.ini. You j

Re: [PHP] PHP debugger

2007-05-16 Thread Miles Thompson



-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]
Sent: 15 May 2007 08:21
To: PHP List
Subject: [PHP] PHP debugger


I am trying to load a PHP debugger in our most recent build of PHP 5.2.1.

The debugger which I am trying to set up is the free, pre-compiled
Linux version of dbg ( DBG 2.15.5 dbg modules), from
http://dd.cron.ru/dbg/, and all of the instructions have been followed
as posted on the NuSphere site.

Yes, Apache has been stopped and restarted!!

There is no difference in the output from phpinfo(). The line
"with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko, http://dd.cron.ru";
does not appear.

PHP is compiled without debugging, but I did consider that was for the
purpose of debugging PHP itself, not scripts.

Suggestions will be most welcome. Also, I'm not married to this, so if
anyone thinks there is a better debugger, please jump in.

Regards - Miles Thompson

< snipped some trivial comments>




On 5/16/07, Arno Kuhl <[EMAIL PROTECTED]> wrote:

If you don't see any change in phpinfo then maybe it's not picking up the
dbg extension in your php.ini. Presumably you've also put the other debugger
directives in your ini?

You can also try download the trial version of PHPEd from Nusphere, install
that, and check how it configures the debugger. The trial lasts a month I
think, so maybe you'll sort out your problems in that time anyway. Just be
sure to completely uninstall it afterwards because I think the free dbg
version is not the same as the version integrated in PHPEd. Any version
differences cause the extension to not load, though in that case it should
report an error. You can't use the dbg integrated in PHPEd after uninstall
because it doesn't work without PHPEd.

Arno



From my php.ini 

; added debug extension "dbg.so-5.2.x" and
; see [debugger] section of this file -  20050515 - mthompson
;
extension=dbg.so  ;dbg.so-5.2.x

and the [debugger] section ...
; Added [debugger] section 20050515 - mthompson
; Note:  DBG versions 2.15 (free) does not support debugger.hosts_allow,
; debugger.hosts_deny or debugger.ports settings.
;
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow= <>
debugger.hosts_deny=ALL
debugger.ports=7869, 1/16
; end [debugger] section

Couple of notes:
1. Tried this with extension pointing to both dbg.so and dbg.so-5.2.x.
(The latter is what the instructions specified, but that did not seem
correct.)

2. Also tried it, in combination with above, with  debugger.hosts_allow,
debugger.hosts_deny and debugger.ports all commented out.

3. PHP version is 5.2.1, compiled from source on a Ubuntu Edgy Eft server.

I'm wondering it I should download the source and compile it. That
might be a better way home than assuming the binary is correct.

Arno, your suggestion to install the NuSphere editor is a good one.
I'm just reluctant to add more junk to my Windows box and to allow
something other than atp-get / dselect to mess with server
configuration. (Although it is a development box, so errors are not
terminal!)

Thanks to everyone for suggestions.

Regards - Miles

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP debugger

2007-05-16 Thread Arno Kuhl
If you don't see any change in phpinfo then maybe it's not picking up the
dbg extension in your php.ini. Presumably you've also put the other debugger
directives in your ini?

You can also try download the trial version of PHPEd from Nusphere, install
that, and check how it configures the debugger. The trial lasts a month I
think, so maybe you'll sort out your problems in that time anyway. Just be
sure to completely uninstall it afterwards because I think the free dbg
version is not the same as the version integrated in PHPEd. Any version
differences cause the extension to not load, though in that case it should
report an error. You can't use the dbg integrated in PHPEd after uninstall
because it doesn't work without PHPEd.

Arno


-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]
Sent: 15 May 2007 08:21
To: PHP List
Subject: [PHP] PHP debugger


I am trying to load a PHP debugger in our most recent build of PHP 5.2.1.

The debugger which I am trying to set up is the free, pre-compiled
Linux version of dbg ( DBG 2.15.5 dbg modules), from
http://dd.cron.ru/dbg/, and all of the instructions have been followed
as posted on the NuSphere site.

Yes, Apache has been stopped and restarted!!

There is no difference in the output from phpinfo(). The line
"with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko, http://dd.cron.ru";
does not appear.

PHP is compiled without debugging, but I did consider that was for the
purpose of debugging PHP itself, not scripts.

Suggestions will be most welcome. Also, I'm not married to this, so if
anyone thinks there is a better debugger, please jump in.

Regards - Miles Thompson

PS Why are we doing this? Because we are getting tired of debugging
with Javascript alert()  boxes. /mt

PPS And we are using those because of Joomla!  Some things are buried
so deeply we cannot use print() or echo(). /mt

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP debugger

2007-05-15 Thread Emil Ivanov
Currently I'm Using PDT/XDebug on daily basis and works just fine.
You can get Xdebug from www.xdebug.org,
PDT from www.eclipse.org/pdt
and the plugin for PDT to add support to the PDT is 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=169408

In the plugin precompiled package you'll find a pdf with instruction how to 
get things working. On the Xdebug site there's a lot of information how to 
setup PHP and XDebug.
Note that the precompiled binary of the support for PDT will work for you, 
as it's written in Java and you don't need to compile it.

Regards,
Emil Ivanov

""Miles Thompson"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I am trying to load a PHP debugger in our most recent build of PHP 5.2.1.
>
> The debugger which I am trying to set up is the free, pre-compiled
> Linux version of dbg ( DBG 2.15.5 dbg modules), from
> http://dd.cron.ru/dbg/, and all of the instructions have been followed
> as posted on the NuSphere site.
>
> Yes, Apache has been stopped and restarted!!
>
> There is no difference in the output from phpinfo(). The line
> "with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko, http://dd.cron.ru";
> does not appear.
>
> PHP is compiled without debugging, but I did consider that was for the
> purpose of debugging PHP itself, not scripts.
>
> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.
>
> Regards - Miles Thompson
>
> PS Why are we doing this? Because we are getting tired of debugging
> with Javascript alert()  boxes. /mt
>
> PPS And we are using those because of Joomla!  Some things are buried
> so deeply we cannot use print() or echo(). /mt 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP debugger

2007-05-15 Thread tg-php
Don't know if it'll do what you want it to do...and if you're using Joomla, it 
might be tricky (or not... havn't messed with Joomla enough to know) to insert 
it into the system in a meaningful way.. but check out this:

FirePHP:
http://www.firephp.org/

Works with Firebug Firefox extension to give some PHP debugging and profiling 
data.

I'm sure there are a dozen other solutions that people will offer up, just 
wanted to get that one in there :)

-TG

= = = Original message = = =

I am trying to load a PHP debugger in our most recent build of PHP 5.2.1.

The debugger which I am trying to set up is the free, pre-compiled
Linux version of dbg ( DBG 2.15.5 dbg modules), from
http://dd.cron.ru/dbg/, and all of the instructions have been followed
as posted on the NuSphere site.

Yes, Apache has been stopped and restarted!!

There is no difference in the output from phpinfo(). The line
"with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko, http://dd.cron.ru";
does not appear.

PHP is compiled without debugging, but I did consider that was for the
purpose of debugging PHP itself, not scripts.

Suggestions will be most welcome. Also, I'm not married to this, so if
anyone thinks there is a better debugger, please jump in.

Regards - Miles Thompson

PS Why are we doing this? Because we are getting tired of debugging
with Javascript alert()  boxes. /mt

PPS And we are using those because of Joomla!  Some things are buried
so deeply we cannot use print() or echo(). /mt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP debugger

2007-05-15 Thread Miles Thompson

I am trying to load a PHP debugger in our most recent build of PHP 5.2.1.

The debugger which I am trying to set up is the free, pre-compiled
Linux version of dbg ( DBG 2.15.5 dbg modules), from
http://dd.cron.ru/dbg/, and all of the instructions have been followed
as posted on the NuSphere site.

Yes, Apache has been stopped and restarted!!

There is no difference in the output from phpinfo(). The line
"with DBG v2.11.30, (C) 2000,2004 by Dmitri Dmitrienko, http://dd.cron.ru";
does not appear.

PHP is compiled without debugging, but I did consider that was for the
purpose of debugging PHP itself, not scripts.

Suggestions will be most welcome. Also, I'm not married to this, so if
anyone thinks there is a better debugger, please jump in.

Regards - Miles Thompson

PS Why are we doing this? Because we are getting tired of debugging
with Javascript alert()  boxes. /mt

PPS And we are using those because of Joomla!  Some things are buried
so deeply we cannot use print() or echo(). /mt

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Debugger Recommendations

2006-07-23 Thread Thiago Silva
On Sunday 23 July 2006 00:07, you wrote:
> These are all ones I've looked at, except for PHPEclipse. Is it not the
> case that with PHPEclipse one needs to install the Eclipse framework and
> then PHPEclipse as a plug in?

Yes. You have to install eclipse platform, and then, PHPEclipse plugin. 

> > Just out of curiosity, what specific problems have you encountered by
> > using a multilanguage debugger?
>
> "Problems" is perhaps too harsh a word. 

Sorry, I couldn't think of any other english word ;)

> All I meant was that with 
> options for dealing with multiple languages, that adds a lot of unneeded
> interface and feature options. I'm sure it's great if you actually debug
> more than one language, and it can save you from switching applications.
> But if you're dealing with strictly one language, then it's a little
> bloated.

I see. I'll have a look at it latter. Never really used it.

>  It's a little hard to describe, but lets say you want to debug a script
> that has a submit form in it. Instead of hitting submit and having
> Komodo pull in and use the $_POST variables, you have to start from the
> page that receives the $_POST data, and then manually type in all the
> input you expect a user to give you. There's a page that describes what
> I mean in their online documentation, but I can't find it at the moment.

That's odd. I'll look into it when I try it out.

Thiago Silva

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Debugger Recommendations

2006-07-22 Thread Dave M G

Thiago Silva,

Thank you for responding, and for recommending some PHP debuggers that I 
had not yet heard of.
I'm not familiar with Windows options (only PHPEdit comes to my mind), but as 
far as I can tell, Zend, NuSphere, Komodo and PHPEclipse are main options 
when it comes to feature rich IDEs, and I guess all of them are multi 
plataform. 
  
These are all ones I've looked at, except for PHPEclipse. Is it not the 
case that with PHPEclipse one needs to install the Eclipse framework and 
then PHPEclipse as a plug in?


For GNU/Linux, there are some folks using Quanta+gubed (a pure php debugger) I 
belive.
  
I hadn't realized there was a debugger plug in for Quanta. I'll look 
into that, as I was using Quanta before for simple editing, and thought 
it was reasonable enough.



Me, myself, I use Protoeditor, wich is strictly editor+debugger.
  

I will try out Protoeditor as well.



Just out of curiosity, what specific problems have you encountered by using a 
multilanguage debugger?
  
"Problems" is perhaps too harsh a word. All I meant was that with 
options for dealing with multiple languages, that adds a lot of unneeded 
interface and feature options. I'm sure it's great if you actually debug 
more than one language, and it can save you from switching applications. 
But if you're dealing with strictly one language, then it's a little 
bloated.


The deal breaker is that when it comes to debugging forms, 
one has to manually simulate inputs.



What do you mean by "simulate"? 
  
It's a little hard to describe, but lets say you want to debug a script 
that has a submit form in it. Instead of hitting submit and having 
Komodo pull in and use the $_POST variables, you have to start from the 
page that receives the $_POST data, and then manually type in all the 
input you expect a user to give you. There's a page that describes what 
I mean in their online documentation, but I can't find it at the moment.




All I can say about NushPhere is that I've used it in GNU/Linux for a while, 
but that was 3 years ago.
  


On the forums on the NuShere page, they actively discuss the Linux 
package. So it is definitely available somehow. And apparently they are 
on the verge of releasing an updated Linux version. But trying to find 
any currently available download page for it was an Easter egg hunt that 
exceeded my patience.




What about Protoeditor or PHPEclipse?
  

I am going to try them out. Thank you for suggesting them.

--
Dave M G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Debugger Recommendations

2006-07-22 Thread Thiago Silva
On Saturday 22 July 2006 13:43, Dave M G wrote:
> Looking on the net, I can find many PHP *editors*, but they do not have
> debugging features. I need something with call stacks, break points, etc...

I'm not familiar with Windows options (only PHPEdit comes to my mind), but as 
far as I can tell, Zend, NuSphere, Komodo and PHPEclipse are main options 
when it comes to feature rich IDEs, and I guess all of them are multi 
plataform. 

For GNU/Linux, there are some folks using Quanta+gubed (a pure php debugger) I 
belive.
Me, myself, I use Protoeditor, wich is strictly editor+debugger.

> For fully qualified debuggers, I've found Komodo, which is okay, but
> it's made a little cumbersome by the fact that it can debug multiple
> languages. 

Just out of curiosity, what specific problems have you encountered by using a 
multilanguage debugger?

> The deal breaker is that when it comes to debugging forms, 
> one has to manually simulate inputs.

What do you mean by "simulate"? 

> There is also NuSphere, and other Windows options, but I need something
> that will also work on Linux. NuSphere doesn't seem to have released for
> Linux yet, as I can't find anywhere to download it, despite having
> searched their site.

All I can say about NushPhere is that I've used it in GNU/Linux for a while, 
but that was 3 years ago.

> Beyond that, I haven't found many, unless I'm mistook some editors for
> not being debuggers (Quanta, Bluefish...)

What about Protoeditor or PHPEclipse?

Thiago

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Debugger Recommendations

2006-07-22 Thread Dave M G

PHP List,

I have been experimenting with using Zend Studio the last week or so, 
and I apologize in advance if anyone here takes offense, but it has been 
a most unsatisfactory experience.


In order to debug a script that involves anything like a form with user 
$_POST data, one needs to install the nebulous and fragile Zend 
Platform. To make a long story short, I have not yet succeeded in 
overcoming it's overwhelming complexity to make it work, or solve all 
the problems in installation and running it.


When I asked here before (to the annoyance of some) about Zend, someone 
said that there were "plenty of free alternatives".


While free would be nice, I am willing to pay for a commercial product 
up to a hundred or so US. I would prefer open source and all, but my 
higher priority is something that works well.


Looking on the net, I can find many PHP *editors*, but they do not have 
debugging features. I need something with call stacks, break points, etc...


For fully qualified debuggers, I've found Komodo, which is okay, but 
it's made a little cumbersome by the fact that it can debug multiple 
languages. The deal breaker is that when it comes to debugging forms, 
one has to manually simulate inputs.


There is also NuSphere, and other Windows options, but I need something 
that will also work on Linux. NuSphere doesn't seem to have released for 
Linux yet, as I can't find anywhere to download it, despite having 
searched their site.


There's Xdebug, but it looks very raw and not ready for prime time.

Beyond that, I haven't found many, unless I'm mistook some editors for 
not being debuggers (Quanta, Bluefish...)


I only need to debug locally, and have Apache, MySQL, and PHP already 
running. I'm collaborating with someone who uses Windows, so something 
cross platform, Java based or whatever else, would be best.


Are there any recommendations?

--
Dave M G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] debugger for CLI PHP scripts...?

2005-05-12 Thread Richard Lynch
On Thu, May 12, 2005 8:35 am, Christopher J. Bottaro said:
> Is there such a thing?  You know, with single stepping, breakpoints,
> examining vars, etc.  100% of my PHP stuff is CLI (wacky, huh?) and I'd
> really benefit from a traditional debugger.  Oh btw, I'm looking for a
> free/opensource one.

I suspect the IDEs are tied into the web-server with --enable-debug...

You *could* set up your dev box to run your CLI scripts through the web
server, just for testing/debugging...

The PHP GTK guys might have some insight on this one -- They do all CLI
stuff with a butt-load of objects, so they must do *something* for those
nasty objects, right?

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] debugger for CLI PHP scripts...?

2005-05-12 Thread Andy Pieters
On Thursday 12 May 2005 17:35, Christopher J. Bottaro wrote:
> Is there such a thing?  

Hi Christopher

Spoken as someone who actively uses PHP both in webpages, and for scripts on 
CLI, the only debugger I am aware of is Gubed (but that's only for PHP & 
Webbpages)

Personally, I use the following setup (pseudo code, I could give you the 
actuall source code, but this is better because it will actually enhance your 
knowledge)

This does not have breakpoints, but if you want them, you can write a function
function breakpoint($info)
{debug($info);
 die();}

After that if you want conditional breakpoints, use an assert like function

function assert($var,$value,$msg)
{if($var==$value)
  breakpoint($msg);
}


Do you see the light yet?

If you implement it properly, you don't even need to change your source code 
when debugging is done.


example flow:

Register_shutdownfunction("debug","dump");

then everywhere in the script, 

function dosomething($param)
{debug("domsomething($param)");
...
}

function debug()
{static $data='';
 get parameter list
 if first param="dump"
 {if preferences=dumtofile
   writetofile $data
  else
   writetoconsole $data
}
 else
  data[]=$parameters
}
}

Can you see the use of this?

Kind regards


Andy

-- 
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C$(+++) UL>$ P-(+)>++
L+++>$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>$@ h++(*) r-->++ y--()>
-- ---END GEEK CODE BLOCK--
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] debugger for CLI PHP scripts...?

2005-05-12 Thread Christopher J. Bottaro
Is there such a thing?  You know, with single stepping, breakpoints,
examining vars, etc.  100% of my PHP stuff is CLI (wacky, huh?) and I'd
really benefit from a traditional debugger.  Oh btw, I'm looking for a
free/opensource one.

Thanks!

P.S.  Yes, I've searched Google and www.php.net/manual, and yes, I've found
stuff...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Debugger 4 Linux?

2004-06-04 Thread Yann Larrivee
Xdebug, is free and works on unix and windows and it is a PHP extension.

www.xdebug.org

Yann

On Fri, 2004-06-04 at 09:51, Marco Schuler wrote:
> Am Fr, 2004-06-04 um 00.14 schrieb Nick Wilson:
> > Hi everyone, 
> > 
> > Can anyone recommend a good debugger for *nix?
> 
> Zend Studio
> 
> > Many thx!
> > -- 
> > Nick W
> 
> -- 
> Regards
>  Marco

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Debugger 4 Linux?

2004-06-04 Thread Marco Schuler
Am Fr, 2004-06-04 um 00.14 schrieb Nick Wilson:
> Hi everyone, 
> 
> Can anyone recommend a good debugger for *nix?

Zend Studio

> Many thx!
> -- 
> Nick W

-- 
Regards
 Marco

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Debugger 4 Linux?

2004-06-03 Thread Nick Wilson
Hi everyone, 

Can anyone recommend a good debugger for *nix?

Many thx!
-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] debugger listener

2003-12-22 Thread Alberto M.
Alberto M. wrote:
php 4.3.0 + apache + linux suse 8.2

I tried to install xdebug (http://www.xdebug.org/install.php) as an 
precompiled module, but it seems not running when I did reload apache.
I mean, I can't see it in the module list in phpinfo() page.

Also, I don't know how to catch up events sent by debugger, may I need 
to build a tcp listener? Any hint about how to do it?

Bye, Alberto.

as usual, I answer myself:

http://www.xdebug.org/docs-settings.php

there are several options to set in php.ini file in order to get the 
xdebug work.

BTW I would know if someone has tried xdebug and has some hints.

bye, alberto.

--
"Imagination is more important than knowledge"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] debugger listener

2003-12-22 Thread Alberto M.
php 4.3.0 + apache + linux suse 8.2

I tried to install xdebug (http://www.xdebug.org/install.php) as an 
precompiled module, but it seems not running when I did reload apache.
I mean, I can't see it in the module list in phpinfo() page.

Also, I don't know how to catch up events sent by debugger, may I need 
to build a tcp listener? Any hint about how to do it?

Bye, Alberto.

--
"Imagination is more important than knowledge"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Advanced PHP Debugger

2003-01-30 Thread Fredrik Johansson
Hey,

Where can I find a compiled php_apd.dll for Windows 2000 / PHP 4.3.0? If 
you have it, it would be great if you could send it to me (to me 
personally and not the list).

Thanks!

// Fredrik Johansson



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Advanced PHP Debugger

2003-01-05 Thread Fredrik Johansson
 Hi,

If someone out there has an .dll file for the Advanced PHP Debugger 
(APD) extension to run i Windows 2000 (PHP version 4.2.2) I would be 
glad if you could send it to me. I have tried to compile one myself but 
has failed each and every time :(

Regards,
Fredrik Johansson



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] which PHP debugger?

2002-11-20 Thread Nick Oostveen
Check out DBG, which is the PHP debugger that is used by most of the IDEs 
out there:

http://dd.cron.ru/dbg/

If you want a free, open source, IDE to use with it, check out:

http://www.phpedit.com/

At 09:37 AM 11/19/2002 -0500, Adam Voigt wrote:
Actually, I belive you can set breakpoints and step through code with
Zend Studio. (Free download for personal use).

http://www.zend.com


On Tue, 2002-11-19 at 04:35, [EMAIL PROTECTED] wrote:
> h...
> I *think* PHP is platform independant for the most part, and it is not 
like it
> is a compiled language where you have fancy debuggers to set 
breakpoints, step
> through the code, etc...
>
> Why not use the functions built into PHP?
> echo " ";
> if a mysql problem: mysql_error()
>
> -Brad
>
> > Hi all,
> > please which PHP debugger is the "best one"? (fast keyboard commands,
> > variables, includes, reliability etc.).
> > Which PHP debugger works well under Windows, which under Linux?
> >
> > thanks...
> >
> > ---
> > Odchozí zpráva neobsahuje viry.
> > Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> > Verze: 6.0.419 / Virová báze: 235 - datum vydání: 13.11.2002
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] which PHP debugger?

2002-11-19 Thread Adam Voigt
Actually, I belive you can set breakpoints and step through code with
Zend Studio. (Free download for personal use).

http://www.zend.com


On Tue, 2002-11-19 at 04:35, [EMAIL PROTECTED] wrote:
> h...
> I *think* PHP is platform independant for the most part, and it is not like it 
> is a compiled language where you have fancy debuggers to set breakpoints, step 
> through the code, etc...
> 
> Why not use the functions built into PHP?
> echo " ";
> if a mysql problem: mysql_error()
> 
> -Brad
> 
> > Hi all,
> > please which PHP debugger is the "best one"? (fast keyboard commands,
> > variables, includes, reliability etc.).
> > Which PHP debugger works well under Windows, which under Linux?
> > 
> > thanks...
> > 
> > ---
> > Odchozí zpráva neobsahuje viry.
> > Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> > Verze: 6.0.419 / Virová báze: 235 - datum vydání: 13.11.2002
> >  
> > 
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
-- 
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc



signature.asc
Description: This is a digitally signed message part


Re: [PHP] which PHP debugger?

2002-11-19 Thread bbonkosk
h...
I *think* PHP is platform independant for the most part, and it is not like it 
is a compiled language where you have fancy debuggers to set breakpoints, step 
through the code, etc...

Why not use the functions built into PHP?
echo " ";
if a mysql problem: mysql_error()

-Brad

> Hi all,
> please which PHP debugger is the "best one"? (fast keyboard commands,
> variables, includes, reliability etc.).
> Which PHP debugger works well under Windows, which under Linux?
> 
> thanks...
> 
> ---
> Odchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.419 / Virová báze: 235 - datum vydání: 13.11.2002
>  
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] which PHP debugger?

2002-11-19 Thread Otakar Kverka
Hi all,
please which PHP debugger is the "best one"? (fast keyboard commands,
variables, includes, reliability etc.).
Which PHP debugger works well under Windows, which under Linux?

thanks...

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.419 / Virová báze: 235 - datum vydání: 13.11.2002
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP debugger

2002-10-04 Thread Anna Gyor

Hello,

is there any application with I can test my php-based web site? I know Zend
Studio and PHPEdit but I can't use them if any variable comes from an other
html site.

(For example in logging there are loginname and password as html variable
and the debugger don't see them and the script doesn't works.)

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] debugger

2002-06-26 Thread Anil Garg

hi
thanx for ur mail.
In fact i have to make changes in the code written by someone else.
I want to use debugger to know the path in which the files are called.
Which is the debugger for php?
thanx
anil

- Original Message -
From: "B i g D o g" <[EMAIL PROTECTED]>
To: "Anil Garg" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 26, 2002 5:54 PM
Subject: Re: [PHP] debugger


> There are some IDE's that support debugging or you can just use the
parser.
> It will tell you the problem and spit out a warning or error depending on
> how you have your php.ini set up.
>
> I usually have display_errors on so that I can use that as my debugger.
> Then when I go on a live server I have it turned off and I have errors
being
> logged to a file.
>
> Debugger for poor developers...
>
>
> B i g D o g
>
>
> - Original Message -
> From: "Anil Garg" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 26, 2002 2:47 PM
> Subject: [PHP] debugger
>
>
> > hi,
> > in perl i used perldb for debugging.
> > whats to be used in php!!
> > thanx
> > anil
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] debugger

2002-06-26 Thread B i g D o g

There are some IDE's that support debugging or you can just use the parser.
It will tell you the problem and spit out a warning or error depending on
how you have your php.ini set up.

I usually have display_errors on so that I can use that as my debugger.
Then when I go on a live server I have it turned off and I have errors being
logged to a file.

Debugger for poor developers...


B i g D o g


- Original Message -
From: "Anil Garg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 26, 2002 2:47 PM
Subject: [PHP] debugger


> hi,
> in perl i used perldb for debugging.
> whats to be used in php!!
> thanx
> anil
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] debugger

2002-06-26 Thread Anil Garg

hi,
in perl i used perldb for debugging.
whats to be used in php!!
thanx
anil


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] [debugger] ??

2002-06-10 Thread Dan Bolser


I want to use this package, 


with DBG v2.10pl1, (C) 2000,2001, by Dmitri Dmitrienko, [EMAIL PROTECTED],
http://dd.cron.ru

but I dont want to spend any money.

Any one know of a nusphere hack?

What is the story behind that?

Cheers, Dan.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Debugger

2002-05-10 Thread Jose Leon

Hello:
  I have been browsing the web for a good solution to debug php code, I 
have found several ones, but none of them meet my requeriments. I 
create a development tool for PHP (QaDRAM Studio) and I want to be able 
to debug php code with it, my question here is: 

Why PHP 4 has no built-in debug features? This will simplify the setup 
for debugging php code and will allow php development tools provide 
debug support in a convenient way, instead force the user to change the 
php.ini file to support debug and to don't be able to debug every time 
the php version changes.

I have examined DBG and it's the one that fits my needs better, but 
there's not too much information on how to use it and what I have found 
is not complete. Also requires to load a 'listener' to be able to debug 
remotely. The Komodo solution looks nicer, but is propietary. Any help 
or comments?

Regards.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] debugger

2002-04-20 Thread heinisch

At 20.04.2002  21:15, you wrote:
>Hi to all!!!
>Can anyone tell me how to debug in PHP?
>When I use ASP simply I write "stop" (VB) or "debugger" (JSCRIPT) to set a
>breakpoint and open the Microsoft Script Debugger.
>With PHP I can't find a way to do a similar thing.
>I downloaded the DBG PHP debugger but I don't understand how to use it like
>MSD.
>My config is:
>PHP 4.1.2 + IIS5 + WinXPpro
>
>I'm bored to use echo "$something" for debug :-(
>
>Thanks in advance for your help,
>Evan
I´m not shure, but ZEND offers some kind of IDE and nusphere has an IDE
which has a debugger built in , but who needs this??
Use an editor with macro functionality so u can set a macro which makes
something like if($debug){ echo something}, then you can set one var
to turn debugging on/off.
Are you shure you need PHP for your problems? Seems that you´re lucky
with M$ and their ek$pen$ive environments.

Oliver


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] debugger

2002-04-20 Thread Evan

Hi to all!!!
Can anyone tell me how to debug in PHP?
When I use ASP simply I write "stop" (VB) or "debugger" (JSCRIPT) to set a
breakpoint and open the Microsoft Script Debugger.
With PHP I can't find a way to do a similar thing.
I downloaded the DBG PHP debugger but I don't understand how to use it like
MSD.
My config is:
PHP 4.1.2 + IIS5 + WinXPpro

I'm bored to use echo "$something" for debug :-(

Thanks in advance for your help,
Evan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Debugger, Debugger and Debugger

2001-02-16 Thread Thies C. Arntzen

On Thu, Feb 15, 2001 at 04:22:04PM -0500, Toby Butzon wrote:
> I've read that several times... so does that mean now the only debugger
> for PHP4 is the Zend one?

there's http://dd.cron.ru



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Toby Butzon

I've read that several times... so does that mean now the only debugger
for PHP4 is the Zend one?

--toby

Chris Lee wrote:
> 
> You must be viewing old documentation.
> 
> http://php.net/manual/en/debugger.php
> 
> clearly states that debugger, ie debugger_on() support is in php3 only, not
> in php4.
> 
> Your not out of luck though, you could still use the Zend Debugger, the Zend
> boys seem to be quite eager to improve its current quallity.
> 
> http://zend.com/store/products/ide-test-drive.php
> 
> --
> 
> Chris Lee
> Mediawaveonline.com
> 
> em. [EMAIL PROTECTED]
> 
> ph. 250.377.1095
> ph. 250.376.2690
> fx. 250.554.1120
> 
> "Ricardo D'Aguiar" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > Problem:
> > I'm trying put to work the debugger in php4.0.4pl1(Red Hat Distribution),
> I
> > change my php.ini file to enable the debugger but when try to use in a
> simple
> > script I get the following error:
> >
> > Fatal error: Call to undefined function: debugger_on() in
> > /var/www/html/php/dbg.php on line 2
> >
> > Questions:
> > 1º Do I need some sort of extension (something like  xxx.so) to activate
> the
> > debugger?
> >
> > 2º In php documentation (Chapter: Using the Debugger) says:
> >  Set up a TCP listener on that port somewhere (for example
> socket -l -s 1400
> > on UNIX).
> >
> >  I don't have that "socket" command in Linux/Unix, what is this?
> >  What this means?
> >
> > 3º I need to debug my script what is the best way to do that?
> >  (I tried the "Zend IDE Test Drive" but after 30 days is not for free
> and
> > can't put to work the "The DBG PHP Debugger").
> >
> > 4º What is the difference between Zend debugger, Dmitri Dmitrienko PHP
> debugger
> > (seen link below) and the 'internal' PHP debugger?
> >
> > Thanks, (Sorry for the bad english)
> >
> >
> >
> > Additional Information:
> >
> > PHP version: PHP Version 4.0.4pl1- Red Hat distribution
> > O.S. - Red Hat 7.0
> >
> > Compiled options (PHP) extract from phpinfo():
> > './configure' '--prefix=/usr' '--with-config-file-path=/etc'
> '--disable-debug'
> > '--enable-pic' '--enable-shared' '--enable-inline-optimization'
> > '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin'
> '--with-regex=system'
> > '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png'
> '--with-zlib'
> > '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
> > '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
> > '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp'
> > '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle'
> > '--without-oci8' '--with-xml'
> >
> > Simple Script to test the debugger:
> >  > debugger_on(localhost);
> >
> > $var = 1;
> >
> > if ($var == 1 ) {
> > echo "VAR is 1";
> > } else {
> > echo "VAR is not 1";
> > }
> > ?>
> >
> > PHP.INI file (Revelant parts):
> > #Extension actived
> > extension=imap.so
> > extension=ldap.so
> > extension=pgsql.so
> >
> > [Debugger]
> > debugger.host   =   localhost
> > debugger.port   =   7869
> > debugger.enabled=   true
> >
> > Dmitri Dmitrienko PHP Debugger:
> > http://dd.cron.ru/dbg/
> > +++
> > Ricardo D'Aguiar
> > MemoSis - Sistemas Informáticos
> > Portugal
> > +++
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Chris Lee

You must be viewing old documentation.

http://php.net/manual/en/debugger.php

clearly states that debugger, ie debugger_on() support is in php3 only, not
in php4.

Your not out of luck though, you could still use the Zend Debugger, the Zend
boys seem to be quite eager to improve its current quallity.

http://zend.com/store/products/ide-test-drive.php


--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



"Ricardo D'Aguiar" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Problem:
> I'm trying put to work the debugger in php4.0.4pl1(Red Hat Distribution),
I
> change my php.ini file to enable the debugger but when try to use in a
simple
> script I get the following error:
>
> Fatal error: Call to undefined function: debugger_on() in
> /var/www/html/php/dbg.php on line 2
>
> Questions:
> 1º Do I need some sort of extension (something like  xxx.so) to activate
the
> debugger?
>
> 2º In php documentation (Chapter: Using the Debugger) says:
>  Set up a TCP listener on that port somewhere (for example
socket -l -s 1400
> on UNIX).
>
>  I don't have that "socket" command in Linux/Unix, what is this?
>  What this means?
>
> 3º I need to debug my script what is the best way to do that?
>  (I tried the "Zend IDE Test Drive" but after 30 days is not for free
and
> can't put to work the "The DBG PHP Debugger").
>
> 4º What is the difference between Zend debugger, Dmitri Dmitrienko PHP
debugger
> (seen link below) and the 'internal' PHP debugger?
>
> Thanks, (Sorry for the bad english)
>
>
>
> Additional Information:
>
> PHP version: PHP Version 4.0.4pl1- Red Hat distribution
> O.S. - Red Hat 7.0
>
> Compiled options (PHP) extract from phpinfo():
> './configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--disable-debug'
> '--enable-pic' '--enable-shared' '--enable-inline-optimization'
> '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin'
'--with-regex=system'
> '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png'
'--with-zlib'
> '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
> '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
> '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp'
> '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle'
> '--without-oci8' '--with-xml'
>
> Simple Script to test the debugger:
>  debugger_on(localhost);
>
> $var = 1;
>
> if ($var == 1 ) {
> echo "VAR is 1";
> } else {
> echo "VAR is not 1";
> }
> ?>
>
> PHP.INI file (Revelant parts):
> #Extension actived
> extension=imap.so
> extension=ldap.so
> extension=pgsql.so
>
> [Debugger]
> debugger.host   =   localhost
> debugger.port   =   7869
> debugger.enabled=   true
>
> Dmitri Dmitrienko PHP Debugger:
> http://dd.cron.ru/dbg/
> +++
> Ricardo D'Aguiar
> MemoSis - Sistemas Informáticos
> Portugal
> +++
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Ricardo D'Aguiar

Hi,

Problem:
I'm trying put to work the debugger in php4.0.4pl1(Red Hat Distribution), I
change my php.ini file to enable the debugger but when try to use in a simple
script I get the following error:

Fatal error: Call to undefined function: debugger_on() in
/var/www/html/php/dbg.php on line 2

Questions:
1º Do I need some sort of extension (something like  xxx.so) to activate the
debugger?

2º In php documentation (Chapter: Using the Debugger) says:
 Set up a TCP listener on that port somewhere (for example socket -l -s 1400
on UNIX).

 I don't have that "socket" command in Linux/Unix, what is this?
 What this means?

3º I need to debug my script what is the best way to do that?
 (I tried the "Zend IDE Test Drive" but after 30 days is not for free and
can't put to work the "The DBG PHP Debugger").

4º What is the difference between Zend debugger, Dmitri Dmitrienko PHP debugger
(seen link below) and the 'internal' PHP debugger?

Thanks, (Sorry for the bad english)



Additional Information:

PHP version: PHP Version 4.0.4pl1- Red Hat distribution
O.S. - Red Hat 7.0

Compiled options (PHP) extract from phpinfo():
'./configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug'
'--enable-pic' '--enable-shared' '--enable-inline-optimization'
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system'
'--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib'
'--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp'
'--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle'
'--without-oci8' '--with-xml'

Simple Script to test the debugger:


PHP.INI file (Revelant parts):
#Extension actived
extension=imap.so
extension=ldap.so
extension=pgsql.so
 
[Debugger]
debugger.host   =   localhost
debugger.port   =   7869
debugger.enabled=   true

Dmitri Dmitrienko PHP Debugger:
http://dd.cron.ru/dbg/
+++
Ricardo D'Aguiar
MemoSis - Sistemas Informáticos
Portugal
+++

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]