NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
yudiset
Joined: 28 Nov 2008 Posts: 7
|
Posted: Fri Nov 28, 2008 6:17 am Post subject: Debugging objects created through singleton method |
|
|
Dear all,
I'm a newbie to PHP and Netbeans.
Lately I'm testing a PHP framework, P4A - PHP for Applications (http://p4a.sourceforge.net).
Turned out it's using the singleton design pattern (http://id2.php.net/manual/en/language.oop5.patterns.php).
I downloaded the framework (https://sourceforge.net/project/showfiles.php?group_id=98294&package_id=105252) and as usual tried the Hello World tutorial (http://p4a.crealabsfoundation.org/tv/hello-world.html)
I can debug the code if I put the breakpoints in the framework code.
But If I set the breakpoint in the new code explained in the tutorial (Hello World) then NB won't stop at the set breakpoint.
It seems that I can't debug the new object created through the singleton method.
I must admit that this singleton design patern implementation is a very new thing for me.
Please help
Thank you. |
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Fri Nov 28, 2008 10:48 am Post subject: Debugging objects created through singleton method |
|
|
yudiset wrote:
| Quote: | Dear all,
I'm a newbie to PHP and Netbeans.
Lately I'm testing a PHP framework, P4A - PHP for Applications (http://p4a.sourceforge.net).
Turned out it's using the singleton design pattern (http://id2.php.net/manual/en/language.oop5.patterns.php).
I downloaded the framework (https://sourceforge.net/project/showfiles.php?group_id=98294&package_id=105252) and as usual tried the Hello World tutorial (http://p4a.crealabsfoundation.org/tv/hello-world.html)
I can debug the code if I put the breakpoints in the framework code.
But If I set the breakpoint in the new code explained in the tutorial (Hello World) then NB won't stop at the set breakpoint.
| I don't know, what could be a problem.
To get more info, you could put into your php.ini setting like this:
xdebug.remote_log=/tmp/xdebug.log (see
http://www.xdebug.org/docs/all_settings) and restart apache server.
FYI - xdebug.remote_log setting allows you to log debugger communication.
Then please report it:
http://www.netbeans.org/community/issues.html (Component php,
Subcomponent: debugger) and put into attachment the log file
(/tmp/xdebug.log)
These steps might be enough to investigate source of the problem and fix.
-thanks
Radek
| Quote: | It seems that I can't debug the new object created through the singleton method.
I must admit that this singleton design patern implementation is a very new thing for me.
Please help
Thank you.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|