xdebug break on index.php OK, any other .php breakpoint not work

6 messages Options
Embed this post
Permalink
AGeorge

xdebug break on index.php OK, any other .php breakpoint not work

Reply Threaded More More options
Print post
Permalink
Hi I have read elsewhere this is a problem, but with older version than my Netbeans which is 6.7.



I'm trying to debug Joomla extension php files. Xdebug is initializing ok, as it will stop on the first line of index.php, but once the ide leaves index.php debug stops (breakpoints in any other module non-functional) until code re-enters index.php. Maybe losing the project path information somehow which is http://localhost/joomla1.6/ however, if thats the case I cant for the life of me see where.



Any advice appreciated. PHP ver 5.2.10 Xdebug php_xdebug-2.0.5-5.2.dll Firefox 3.5, Netbeans extn, Firebug 1.4.3



Tks kindly. Al.





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

zyanho

xdebug break on index.php OK, any other .php breakpoint not work

Reply Threaded More More options
Print post
Permalink
My English is not good enough.but I hope I could do something for you.

I can not get you.



If I got it right .i test it look like



other.php


Code:


$test1 = "other test1";

require_once 'index.php';

$test2 = "other test2";







index.php


Code:


$test1 = "index test1";

$test2 = "index test2";







i set breakpoint other.php at other test1 line ,index.php at index test1 line.and then debug the file other.php.  it stop on $test1 = "other test1".when it step into require_once 'index.php' .it also jump in index.php and stop on $test1 = "index test1" .and the end it also re-enters other.php and stop on $test2 = "other test2".it looks ok.



so paste your code plz



btw my php ver 5.3.0 xdebug 2.0.5 netbeans 6.7.1





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AGeorge-2

xdebug break on index.php OK, any other .php breakpoint not work

Reply Threaded More More options
Print post
Permalink
In reply to this post by AGeorge
Hi thanks for your valued reply. Unfortunately, I am trying to debug other file so system starts on index.php debug other file is not possible but debug index.php is. It is a known problem with Netbeans for a long time and seems nobody has bothered to fix it up. I think maybe my best solution is to move to Eclipse IDE which does not have this problem, but am happy to try anything else.





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

zyanho

xdebug break on index.php OK, any other .php breakpoint not work

Reply Threaded More More options
Print post
Permalink
In reply to this post by AGeorge
the default debug page is index.php

but you can debug what page you want

tool->debug->debug file(ctrl+shift+F5)

then it will not starts on index.php and you can debug other page





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AGeorge-2

xdebug break on index.php OK, any other .php breakpoint not work

Reply Threaded More More options
Print post
Permalink
In reply to this post by AGeorge

zyanho wrote:
> the default debug page is index.php

> but you can debug what page you want

> on the tool bar

> you can choose debug->debug file(ctrl+shift+F5)

> then it will not starts on index.php and you can debug other page


Hi Im not sure if this is going to be any use. For example, the default page is index.php, the page I want to debug cannot be instantiated on its own, as its reliant on other pages initializing variables. Maybe there is a way to start debugging after the script is running, but I doubt it. Cheers, Al.





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

radek matous

Re: xdebug break on index.php OK, any other .php breakpoint not work

Reply Threaded More More options
Print post
Permalink
In reply to this post by AGeorge
AGeorge wrote:

> Hi I have read elsewhere this is a problem, but with older version than my Netbeans which is 6.7.
>
>
>
> I'm trying to debug Joomla extension php files. Xdebug is initializing ok, as it will stop on the first line of index.php, but once the ide leaves index.php debug stops (breakpoints in any other module non-functional) until code re-enters index.php. Maybe losing the project path information somehow which is http://localhost/joomla1.6/ however, if thats the case I cant for the life of me see where.
>
>
>
> Any advice appreciated. PHP ver 5.2.10 Xdebug php_xdebug-2.0.5-5.2.dll Firefox 3.5, Netbeans extn, Firebug 1.4.3
>
>
>
> Tks kindly. Al.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  
Hi,

should work, I think.

You can see:
http://blogs.sun.com/netbeansphp/entry/path_mapping_in_php_debugger

Enable logging and send me the logs :
http://wiki.netbeans.org/HowToConfigureXDebug#section-HowToConfigureXDebug-EnableXdebugLogging

thanks
Radek

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]