Configure Netbeans IDE for Debugging [PHP platform] #Software Development #Web Development #Root #PHP #Web Testing #Mobile Development #By Sayed Ahmed

Presentation slides on this topic: click

To enable xdebug debugging in Netbeans IDE php.ini needs some configuration
[You will be able to debug PHP applications the way you do in Visual Studio, Turbo C/C++ IDE]

php.ini configuration Required

;XDEBUG Extension
zend_extension = “c:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll”

[xdebug]
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 = “c:/wamp/tmp”

Configuration Required in Netbeans IDE:

1. Set the Project URI to the path under your web-server; as you can see the site in a browser; the path shown in the browser address bar. Right click the project, click properties, click run configuration, set the Project URI. Example: http://127.0.0.1:800/example_projects/TodoList/web/

2. Go to Tools->Options->PHP->debugging. see if the parameters are ok, if not fix them. Also, set the properties you want. You may check ‘Watches and Balloon evaluation’


You can set the breakpoints in your project
You can select debug or debug file from menu or from right clicking on the project
Then you can use the Step Over, Step Into, Step Out from debug menu or shortcut keys [better]

You can also check the values of the variables
You can also check the status of the stack
and see all breakpoints listed; there is a window for that

I will add pictures or pdf slides with screen shots to make you understand it better. From: http://sitestree.com/?p=365
Categories:Software Development, Web Development, Root, PHP, Web Testing, Mobile Development, By Sayed Ahmed
Tags:
Post Data:2013-09-07 20:08:46

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada