Friday, February 17. 2006Zend & Command Line DebuggingTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Taking this one step further, I created a bash script "debug", placed it in $PATH, and put the following in it:
#!/bin/sh export QUERY_STRING="start_debug=1&debug_port=10000&debug_host=127.0.0.1&debug_stop=1" /usr/bin/php -q $@ Now I can just do "debug script.php variable1 variable2 variable3 ..."
#1
on
2006-02-17 15:49
Just for completeness, I thought I'd mention that it's normally a good idea to surround $@ with double-quotes, to pass parameters with spaces in them.
The author does not allow comments to this entry
|
Calendar
QuicksearchPeopleBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2002-2009 Andrew Hill