472,782 Members | 1,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

best command line debugger for php

everyone,

I'd like to be able to debug php scripts on the command line, going
through the
browser. In other words, set up the debugger to listen and then type
in a url and have the code stop before displaying stuff to the
browser. Then, step through each individual piece of code, etc, whilst
having the output mirrored to either another file or the debugger
screen...

Anyway, I tried dbg, but it doesn't seem to support this, as far as
I'm aware (ie: you need to set the url, etc inside of the debugger,
and I'm still trying to figure out arguments/etc with it.). I'm not
too hot on a graphical debugger - I'd rather be able to stick with
emacs.

Any suggestions would be greatly appreciated.

thanks again,

jon
Jul 17 '05 #1
6 11049
In article <f0*************************@posting.google.com> ,
tt*******@yahoo.com (jonathan) wrote:
everyone,

I'd like to be able to debug php scripts on the command line, going
through the
browser. In other words, set up the debugger to listen and then type
in a url and have the code stop before displaying stuff to the
browser. Then, step through each individual piece of code, etc, whilst
having the output mirrored to either another file or the debugger
screen...

Anyway, I tried dbg, but it doesn't seem to support this, as far as
I'm aware (ie: you need to set the url, etc inside of the debugger,
and I'm still trying to figure out arguments/etc with it.). I'm not
too hot on a graphical debugger - I'd rather be able to stick with
emacs.

Any suggestions would be greatly appreciated.

thanks again,

jon


I'm not aware of any debugger like perl's built-in command line debugger
that comes with the base php. Zend makes a Windows/MacOS X/Linux-based
IDE with a debugger (http://www.zend.org) for $249. There's a free eval
available if you want to try it out.

If you're looking for something like perl or gdb's debugger, you're
probably SOL.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #2
JV
the way i understand dbg is that you have (on the server where apache & php
are set up) a command line tool similar to gdb for cpp. while I've not got
this working quite right (i need to recomile php) it should be qimple to set
up.
i need to install php5 to get it to work, due to a missing file in my
current installation. I havent yet due to concerns as to whether or not it
will interfere with existing site tools (ENSIM) but heres the link to the
page with the 2 files you will have to download

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

these files
http://dd.cron.ru/dbg/download.php?h=211.30-src
http://dd.cron.ru/dbg/download.php?h=211.30-cli-src

after getting the dbg-cli (the second one) program downloaded and installed
i figured that i needed to install the server part (the first one) too and
thats stopping me atm.

also make sure to read the README and the INSTALL files in both packages.

please let me know how it goes if you can.

HTH
JV
Jul 17 '05 #3
"JV" <jveil.hotpop@com> wrote in message news:<37A%c.131671$9d6.15844@attbi_s54>...
the way i understand dbg is that you have (on the server where apache & php
are set up) a command line tool similar to gdb for cpp. while I've not got
this working quite right (i need to recomile php) it should be qimple to set
up.
i need to install php5 to get it to work, due to a missing file in my
current installation. I havent yet due to concerns as to whether or not it
will interfere with existing site tools (ENSIM) but heres the link to the
page with the 2 files you will have to download

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

these files
http://dd.cron.ru/dbg/download.php?h=211.30-src
http://dd.cron.ru/dbg/download.php?h=211.30-cli-src

after getting the dbg-cli (the second one) program downloaded and installed
i figured that i needed to install the server part (the first one) too and
thats stopping me atm.

also make sure to read the README and the INSTALL files in both packages.

please let me know how it goes if you can.

HTH
JV

yes, I've tried dbg-cli -

1) doesn't support POST
2) no integration with browser

that's why I was hoping for an alternative. Anyone who's got one,
please let me know... I'd love to be able to just run things in my
browser and have them show up in a terminal window.. I dislike
graphical debuggers quite a bit..

jon
Jul 17 '05 #4
In article <f0************************@posting.google.com>, jonathan wrote:
"JV" <jveil.hotpop@com> wrote in message news:<37A%c.131671$9d6.15844@attbi_s54>...
the way i understand dbg is that you have (on the server where apache & php
are set up) a command line tool similar to gdb for cpp. while I've not got
this working quite right (i need to recomile php) it should be qimple to set
up.
i need to install php5 to get it to work, due to a missing file in my
current installation. I havent yet due to concerns as to whether or not it
will interfere with existing site tools (ENSIM) but heres the link to the
page with the 2 files you will have to download

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

these files
http://dd.cron.ru/dbg/download.php?h=211.30-src
http://dd.cron.ru/dbg/download.php?h=211.30-cli-src

after getting the dbg-cli (the second one) program downloaded and installed
i figured that i needed to install the server part (the first one) too and
thats stopping me atm.

also make sure to read the README and the INSTALL files in both packages.

please let me know how it goes if you can.

HTH
JV

yes, I've tried dbg-cli -

1) doesn't support POST
2) no integration with browser


I tried dbg-cli too, but in my case, I explicitly DON'T want any
integration with the browser or the web server, so it wouldn't work for
me either.
that's why I was hoping for an alternative. Anyone who's got one,
please let me know... I'd love to be able to just run things in my
browser and have them show up in a terminal window.. I dislike
graphical debuggers quite a bit..


Aside from: tail -f error_log ..... and/or strategic die("BPfoo"); statements...

I'm afraid we're out of luck for now.

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

Jul 17 '05 #5
"user235" wrote:
In article <f0*************************@posting.google.com> ,
tt*******@yahoo.com (jonathan) wrote:
everyone,

I’d like to be able to debug php scripts on the command

line, going
through the
browser. In other words, set up the debugger to listen and then

type
in a url and have the code stop before displaying stuff to the
browser. Then, step through each individual piece of code, etc,

whilst
having the output mirrored to either another file or the debugger
screen...

Anyway, I tried dbg, but it doesn’t seem to support this,

as far as
I’m aware (ie: you need to set the url, etc inside of the

debugger,
and I’m still trying to figure out arguments/etc with it.).

I’m not
too hot on a graphical debugger - I’d rather be able to

stick with
emacs.

Any suggestions would be greatly appreciated.

thanks again,

jon


I’m not aware of any debugger like perl’s built-in command
line debugger
that comes with the base php. Zend makes a Windows/MacOS
X/Linux-based
IDE with a debugger (http://www.zend.org) for 9. There’s a
free eval
available if you want to try it out.

If you’re looking for something like perl or gdb’s
debugger, you’re
probably SOL.


I use Zend to debug scripts run from command line (mostly for exec as
crontab). It works fine. One issue I have found is that I don’t know
how to feed CLI arguments to the interpretor, but that is easy to work
around (by just detecting that the debugger is running, and setting
the parameters in the script accordingly).

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-command-...ict147576.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=494526
Jul 17 '05 #6
"user235" wrote:
In article <f0*************************@posting.google.com> ,
tt*******@yahoo.com (jonathan) wrote:
everyone,

I’d like to be able to debug php scripts on the command

line, going
through the
browser. In other words, set up the debugger to listen and then

type
in a url and have the code stop before displaying stuff to the
browser. Then, step through each individual piece of code, etc,

whilst
having the output mirrored to either another file or the debugger
screen...

Anyway, I tried dbg, but it doesn’t seem to support this,

as far as
I’m aware (ie: you need to set the url, etc inside of the

debugger,
and I’m still trying to figure out arguments/etc with it.).

I’m not
too hot on a graphical debugger - I’d rather be able to

stick with
emacs.

Any suggestions would be greatly appreciated.

thanks again,

jon


I’m not aware of any debugger like perl’s built-in command
line debugger
that comes with the base php. Zend makes a Windows/MacOS
X/Linux-based
IDE with a debugger (http://www.zend.org) for 9. There’s a
free eval
available if you want to try it out.

If you’re looking for something like perl or gdb’s
debugger, you’re
probably SOL.


I use Zend to debug scripts run from command line (mostly for exec as
crontab). It works fine. One issue I have found is that I don’t know
how to feed CLI arguments to the interpretor, but that is easy to work
around (by just detecting that the debugger is running, and setting
the parameters in the script accordingly).

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-command-...ict147576.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=494525
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ryan | last post by:
I was wondering if anyone could lend a hand with the following issue... I am testing application code (C++) that is currently built for the VxWorks platform. When loading in the object code (ld...
6
by: Jon Hewer | last post by:
hi i am writing a little script and currently implementing command line arguments following the guide by mark pilgrim from dive into python; ...
6
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
6
by: lavu | last post by:
How can I debug a C# GUI app which is invoked from the command line ? Thanks in advance.
0
by: GT | last post by:
Hello I'm trying to embed .resource files into a Windows application in VS2005, and then compile and run the program from VS2005. This does not work because the debugger seems not find the...
10
by: arlef | last post by:
Hi Guys, When learning a language such as C#, would you say it is better to learn the fundamentals using the command-line compiler and a simple text editor such as notepad compared to using a...
2
by: piercy | last post by:
Hi, ive developed an application which writes and xml file for the binding redirects. i need this app to be able to receive command line parameters. so when form is executed normally it will ask...
2
code green
by: code green | last post by:
What is the best command line equivalent of $_SERVER. I have recently written a number of scripts to run from an intranet that generate reports written to CSV and XLS files that can be downloaded....
3
by: V S Rawat | last post by:
Browser has its own settings, java, javascripts, addons, extensions, keyboard shortcuts, along with the problem in html coding in the php file, which all I think might interfere with seeing only...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.