PHP Debug: Improvement and propably a bug

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
franka
Posts: 4
Joined: Sun Nov 16, 2008 8:59 pm
Location: Berlin, Germany

PHP Debug: Improvement and propably a bug

Post by franka »

Would be nice to have a small improvement:
An option in the debugger settings to start debugging from the first line or a specified page (or the first "index" page from the project).
Also it would be nice to have this debugger settings stored with the project settings.

(debugging on own webserver)
Preview setting and mapping is working correctly but while debugging with the option "open output to the editor" its not working as expected.
The project mappings for the preview are not used for this generated page and it comes the error page with "The software is not yet configured for previewing PHP files".
Is there something missing or its probably a bug?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: PHP Debug: Improvement and propably a bug

Post by Karlis »

You can start debugging from whatever file or place. Just put a breakpoint on the line of your choice, it can be also an include and must not necessarily be the index.php file which includes everything.

The "The software is not yet configured for previewing PHP files" message appears if *external* web server is chosen to be used (or if both are enabled or if none is enabled) and the appropriate mappings are not set. You should use only one - internal OR external web server and disable the other option.
Karlis Blumentals
Blumentals Software
www.blumentals.net
claudioprv
Posts: 3
Joined: Fri Jan 09, 2009 7:08 pm

Re: PHP Debug: Improvement and propably a bug

Post by claudioprv »

Rapidphp is a very nice software, Fast e easy but your php debug does not work, please karlis expend more attention for debugger, look netbeans php debugger is fantastic tool, rapidphp is very easy than netbeans rapidphp have nice css visual.
debugger on netbeans stop on begin page, works fine with great projects like moodle, drupal e etc.
The last compilation of rapidphp down the debugger... :cry:
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: PHP Debug: Improvement and propably a bug

Post by Karlis »

You must report in detail. For me and for most of us it works, so it seems not to work for you (or some group of users) and to find out why it does not work for you, you need to provide more information what did you try to do, what happened and what did you expect to happen + what config you have (php, xdebug versions, whether you use built-in or external web server etc etc)
Karlis Blumentals
Blumentals Software
www.blumentals.net
claudioprv
Posts: 3
Joined: Fri Jan 09, 2009 7:08 pm

Re: PHP Debug: Improvement and propably a bug

Post by claudioprv »

Karlis Hello,

Firstly, I want to congratulate you for the wonderful tool.
Currently I use NetBeans, in fact I work with delphi but here in the company where I work, I have some pages in php that need maintenance.
As a programmer delphi is addicted to debug and go quickly tried several tools, but the more faster, lighter and practice than I found was the rapidphp.

My english is terrible, I will capture the screens in swf to show better.

In the previous version of Rapidphp 9.4.0.101, the debug was working well, but the current version 9.4.0.102 it stopped working.
My setup php xdebug and remains the same as I use XAMPP and NetBeans is debugando smoothly, until I did a recent upgrade of NetBeans and it continues debugando normally.
I don't like to compare tools and NetBeans rapidphp, only I'm using NetBeans as a reference.

I'm php beginner.

http://localhost//ead/index.php?XDEBUG_ ... =webuilder&

I start php debug it show me this url above, I note double slashes after localhost e & after webuilder session...
After the browser start with this session, it immediately makes the redirect to http://localhost/ead/login/index.php was surfing for another site.

Rapidphp configuration

PHP Settings
Path to php executable = E:\xampp\php\php.exe

Debugger Settings:

Display output in web browser
session name: webuilder
listen to port: 9000
listen to external sessions: checked

I use xampp 25. Sept 2008 XAMPP 1.6.8

php.ini
; Windows Extensions

;extension=php_win32std.dll
;extension=php_xdebug.dll <----- Commented
;extension=php_xmlreader.dll
extension=php_xmlrpc.dll


[XDebug]
;;Only Zend OR (!) XDebug
zend_extension_ts="\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="\xampp\tmp"
-------------------------------------------------------------------------------------------------------------
xdebug
xdebug support enabled
Version 2.0.3

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125.2.4 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $

Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.collect_includes On On
xdebug.collect_params 0 0
xdebug.collect_return Off Off
xdebug.collect_vars Off Off
xdebug.default_enable On On
xdebug.dump.COOKIE no value no value
xdebug.dump.ENV no value no value
xdebug.dump.FILES no value no value
xdebug.dump.GET no value no value
xdebug.dump.POST no value no value
xdebug.dump.REQUEST no value no value
xdebug.dump.SERVER no value no value
xdebug.dump.SESSION no value no value
xdebug.dump_globals On On
xdebug.dump_once On On
xdebug.dump_undefined Off Off
xdebug.extended_info On On
xdebug.idekey claudio no value
xdebug.manual_url http://www.php.net http://www.php.net
xdebug.max_nesting_level 100 100
xdebug.profiler_aggregate Off Off
xdebug.profiler_append Off Off
xdebug.profiler_enable On On
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_output_dir \xampp\tmp \xampp\tmp
xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_enable On On
xdebug.remote_handler dbgp dbgp
xdebug.remote_host 127.0.0.1 127.0.0.1
xdebug.remote_log no value no value
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
xdebug.show_exception_trace Off Off
xdebug.show_local_vars Off Off
xdebug.show_mem_delta Off Off
xdebug.trace_format 0 0
xdebug.trace_options 0 0
xdebug.trace_output_dir /tmp /tmp
xdebug.trace_output_name trace.%c trace.%c
xdebug.var_display_max_children 128 128
xdebug.var_display_max_data 512 512
xdebug.var_display_max_depth 3 3

thx ClĆudio.
annyphp
Posts: 5
Joined: Wed Dec 29, 2010 4:33 am

Re: PHP Debug: Improvement and propably a bug

Post by annyphp »

I am glad to recommend some powerful PHP debug script, which you can check out PHPKode.com
Post Reply