sayed ahmed bsc. eng. in computer engineering, buet, bangladesh msc., computer science, u of...
Post on 20-Jan-2016
220 Views
Preview:
TRANSCRIPT
DEVELOPING PHP APPLICATIONS WITH NETBEANS IDE
Sayed AhmedBSc. Eng. in Computer Engineering, BUET, BangladeshMSc., Computer Science, U of Manitoba, CanadaSoftware/Computer Engineer, Canada
http://www.justetc.nethttp://sayed.justetc.netsayed@justetc.net
TOOLS
WAMP: The platform in windows http://www.wampserver.com/en/
Netbeans IDE: use the PHP column https://netbeans.org/downloads/ Xdebug included
Install the Wamp, run it Configure and Start Apache Install Netbeans, and run it
WAMP ADMINISTRATION
A SCREENSHOT ON DEBUGGING
PROJECT PROPERTIES WINDOW
Project Name->right click->select properties
SET THE PROJECT URI
PHP.INI CONFIGURATION REQUIRED
DEBUG RELATED OPTIONS IN THE MAIN MENU
DEBUG SETTINGS IN NETBEANS
Tools->options, then PHP, then debugging
VARIABLES AND VALUES
IN DESCRIPTION
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=truexdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.profiler_enable=1xdebug.profiler_output_dir = “c:/wamp/tmp”
CONFIGURATION REQUIRED IN NETBEANS IDE
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’
MISC STUFF
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.
FREE TRAINING BY JUSTETC
Training and Education in Bangla: http://Bangla.SaLearningSchool.com http://Blog. SaLearningSchool.com
Training and Education in English: http://www.SaLearningSchool.com http://English.SaLearningSchool.com http://www.SitesTree.com
--------------------------------------------------------------------------------- Ask questions and get answers
http://Ask.JustEtc.net
--------------------------------------------------------------------------------- Offline IT Training:
http://University.JustEtc.net
OUR ADDRESSES
Trudelle Street, Toronto, Canada sayed@justetc.com
Shimultuly, Gazipur, Bangladesh Justetc Computers Habib Complex, 2nd Floor rafik@justetc.com (01942747702)
CONCERNS?
http://ask.justetc.net
top related