![]() |
![]() | CLI only, no web server ? | ![]() |
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
Yes you can. If you want to use dbg-cli, run the following commands:
>set mode on >set cgiexec /usr/local/bin/php >file yourscript.php substitute path to php if you installed it into a different directory. Don't forget to install debugger module (see FAQ forum here on how to do it) If you prefer PHPED IDE, you can set Running mode to php-cgi and will allow you debug your scripts w/o browsers and http servers too. |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Hmm, now I get this error:
dbg>set mode on dbg>set cgiexec /usr/local/bin/php dbg>file fwexception_text.php dbg>run Can not map local FS file "fwexception_text.php" to any URL. This file must be under "/usr/local/apache/htdocs/" directory Check mapping settings for HTTP mode. My PHP installation is in /usr/local. Thanks for the reply. |
|||||||||||
|
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
sorry, it's my fault. You need set mode off.
Under mode, dbg-cli understands HTTP mode and consequently requires URLs and etc stuff. Please work with off (which is by default). |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
Heh, this time...
dbg>set mode off dbg>set cgiexec /usr/local/bin/php dbg>file client_test.php Reading symbols from client_test.php...done. dbg>run Program exited. Session start timeout has expired. Program is not being run. I know there are some stickies about timing out, but do they apply to cli only programs? Thanks again. |
|||||||||||
|
![]() |
![]() | ![]() |
Site Admin
![]() |
![]() |
please run /usr/local/bin/php with -i argument and make sure if DBG module is installed and enabled.
|
|||||||||||
|
![]() |
![]() | CLI only, no web server ? | ![]() |
|
||
![]() |
![]() |
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
![phpexpress](/images/poweredby-pe-3.0-small.gif)