欢迎访问 Firefox 附加组件。
*discontinued* easy Xdebug (with moveable icon) 0.9.4
set debug cookies (eg $cookie[XDEBUG_SESSION]='netbeans-xdebug') on your localhost, to enable remote debugging in eclipse/netbeans.
redo of 'easy Xdebug'
+moveable icons (eg. to bookmarkbar)
+refreshes the icons on tab change
i recommend 'the easyest xdebug' since i think it is the overall better addon. it was fun to write this one.
no new versions of this one. see you around :D
if you have issues or would like to commit something there is a github page https://github.com/windwerfer/easyxdebug_refreshed
if you are interested in taking this addon over, please feel free to write me a line, since i will take a break from comupter around summer 2016.
for below firefox 29 versions please download version 0.6.2 from the version history
how it works: you get 2 icons in the url bar to set the following 2 debug cookies:
it works perfectly with eclipse (probably netbeans as well)
Tip: i recently started to set the XDEBUG_PROFILE cookie to something like 'fsdo_secret_password_o8355#oeo034lld' and check for it in my php files to enable error reporting on my live site only when this cookie is set.
-0.9.4 e10 support + setcookie now in separate file (the recommended way)
-0.7.0 ff 29 compatibility issues solved
-0.6.2.1 cookies time out by default on browser close (accidentially removed)
-0.5.1 redone the interior -> code simpler/more readable
-0.4.1 on tab change / reload the icons now show if the cookies are set or not
-0.4.0 you can set different cookie values/names/timeouts in the preferences ( addon manager->easy debug (with moveable icon)->preferences )
for it to get working you need to install xdebug and configure it do do remote debugging in eclipse/netbeans (if the steps at the bottom dont work for you try google with something like 'eclipse xdebug remote debugging')
when its working you can debug any php file you view in your browser on your localhost. The cookie (when set) tells xdebug to do the compiling and eclipse (when started) hooks into xdebug (send it the breakpoints you define) and gets the live data (and pauses the run of the script while you debug)..
you can walk through the code line by line, jump to breakpoints and even manipulate the variables on the run.. they did a great job!
this extention just helps to make the process smoother..
on ubuntu to enable xdebug i only needed the following (no garantie it works for you):
sudo apt-get install php5-xdebug
File - New Project - PHP Project
Name your project
Choose Create project at existing location (from existing source) and browse to your Magento root folder (as used by xampp)
Hit Finish and wait for the project to create
Set up xdebug as your debugger in eclipse
Window - Preferences - PHP - Debug
Change the PHP debugger to Xdebug
Set Accept remote session (JIT) to localhost - OK
Apply - OK