Sayed Ahmed BSc. Eng. in Computer Engineering, BUET, Bangladesh MSc., Computer Science, U of Manitoba, Canada Software/Computer Engineer, Canada
WAMP: The platform in windows Netbeans IDE: use the PHP column Xdebug included Install the Wamp, run it Configure and Start Apache Install Netbeans, and run it
Project Name->right click->select properties
Tools->options, then PHP, then debugging
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 vc9-x86_64.dll” [xdebug] xdebug.remote_enable=true xdebug.remote_host= 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: 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.
Training and Education in Bangla: SaLearningSchool.com SaLearningSchool.com Training and Education in English: Ask questions and get answers Offline IT Training:
Trudelle Street, Toronto, Canada Shimultuly, Gazipur, Bangladesh Justetc Computers Habib Complex, 2 nd Floor ( )