NetBeans
- Open Netbeans
- Tools>Plugins>Available tab
- Choose PHP plugin and install it
- File>New Project
- Expand the PHP Folder
- Choose PHP Project From Existing Source and press Next
- Find the root directory of your Wordpress files
- Give the project a name and import it
- Install XAMPP as detailed in another post
- Point XAMPP's Apache to your Wordpress files by editing
xampp\apache\conf\httpd.conf - Search the document for htdocs -- there will be two occurences.
- Replace the two paths to point to your wordpress code.
So whenever you need to debug:
- Open your hosts file
- Add the following entry:
127.0.0.1 your_domain_name
(you can comment it out with a # at the beginning of a line) - Start Mysql using XAMPP control panel
- Start Apache
- Point your browser at http://localhost
No comments:
Post a Comment