Thursday, February 17, 2011

part 13 / 13 : And a bit more but really useful

0) install easy xdebug:
https://addons.mozilla.org/en-US/firefox/addon/easy-xdebug/
which permit you to command the connection between xdebug and PDT from an icon in the browser, really useful! You can have a debugging session of aptana running and launch the PHP debugger at the same time.

1) setup firefox to disable the cache:
in firefox, in tools->options

in the tab "advanced"
in the tab "Network"
set to 0  the space for the cache.

In my case, it was not enought to avoid firefox to cache my page. I had to open the config:
In firefox, write about:config as an adress,
in the filter write: 'cache', and look for network.http.use-cache, and double click it to set it to false. Double clicking it again will set it to true and re-enable the cache.
Here the page where I found the explanations:
http://benlancaster.wordpress.com/2009/02/10/how-to-completely-disable-firefox-cache/

2) about PDT and Xdebug:
To get the values of the variables when you are debugging inside a function:
In the variables view, you can see all the variables you have inside the function but not the values of them. To get the ones you want, open the "Expressions" view and add the variables you need. BUT it becomes very unstable if you have lines with expressions or variables that are not in the function. For example, if you have a javascript variable as an expression, the debugger scratch.

part 3 / 13 : install xampp 1.7.3

If you did not already download it: it's here:
http://sourceforge.net/projects/xampp/files/


If your OS is vista or windows 7 you have to deactivate the User Account Control (UAC).
In this page, you'll get all the explanation to do it.

Now, run the installation of xampp.
Then you'll have to choose the destination folder:

keep the default one:
windows: c:\
It will create a c:\xampp folder.
ubuntu/linux/mac: ???????? please leave me a comment to let me complete this.

Press install. It take a bit of time to be installed, it's normal.

Then you'll get this window:

Press y and enter.

Follow the next instruction. You should select the default value in each window.

When the install is done, you should have this icon in your desktop:

Click it.
Finally you'll get the XAMPP Control Panel Application window:



when you press a Start button, you should get this:
The Admin button permit to access to the parameters, we'll use it later.
Stop everythings and press Exit button.


Note to linux/mac users: please, make comments to complete this post if you know how to do it with your OS. I'll update the post.

In te next post: will configure configure xdebug, the php.ini and the httpd.conf