Sunday, February 13, 2011

Debugging PHP in Eclipse with XDebug

I got the following error message when I tried to debug a PHP project in Eclipse.

"Unexpected termination of script. Debugging ended."

By looking into the log of XDebug, I found out that this error is actually a timeout of XDebug trying to connect back to the debugging client (in my case, Eclipse). I checked the firewall policy in my system (Windows 7) and it turned out that the inbound connections to Eclipse were all blocked by rule. After I allowed them, this problem was solved.

Monday, January 31, 2011

Installation of XDebug and PDT

Sever side

1. Install XAMPP
2. Download the latest XDebug PHP debugger from http://www.xdebug.org/download.php (XAMPP requires VC 6 thread-safe version) and overwrite xampp\php\ext\php_xdebug.dll.
3. Modify php.ini by uncommenting and setting the following options in XDebug section:
zend_extension = ;
xdebug.remote_enable = 1;

Client side

1. Install PDT following the instructions on http://wiki.eclipse.org/PDT/Installation
2. Configure options related to PHP debugging. Reference can be found on http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pdf

Thursday, March 12, 2009

It turns out to be so easy~

OpenOffice is capable of opening Office07 formatted files DIRECTLY!

What a surprise!

Configuring Subversive and Eclipse under Ubuntu

I was once greatly depressed by Ubuntu not integrating later version of Eclipse as its package. It almost drove me think of running away from Ubuntu. (Do not laugh at me. I hate the trouble of configuring it manually). Yesterday, however, I decided to configure... MANUALLY

Installing Eclipse is easy. Download and extract the files into the appropriate place.

To install Subversive, the first thing needed is the JavaHL package named libsvn-java.

And then modify eclipse.ini as:

-showsplash
org.eclipse.platform
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Djava.library.path=/usr/lib/jni
-Xms40m
-Xmx512m
-XX:MaxPermSize=400m

The last thing is to install the packages of Subversive following the instructions in its official site. Note : JavaHL Win32 Binaries is not needed.

Tuesday, September 2, 2008

Continuing my internship in CRL

Still trying hard to tackle the unsolvable problems imposed by Data Management. Algorithms conceived seems to be in so high order of complexity that defies practicle application.

Friday, May 2, 2008

A short conversation~

A short conversation that appears in a qq group I joined. It shows a phenomenon called "Generation Gap".

(378778168) 15:40:37
的确很隐士,xiaonei都找不到他.呃...群里面哪个是陈师傅啊?

(52697855) 20:11:32
难道现在不上校内就算得上隐士了……囧

(378778168) 20:12:44
必要非充分条件...

(52697855) 20:13:45
看来我old了……

(378778168) 20:15:10
不上校内不代表是隐士啊...

(52697855) 20:15:45
感叹校内流行而已,跟不上潮流咯

(378778168) 20:17:23
前辈

(52697855) 20:18:58
世界是我们的,也是你们的,但终归会是你们的~

(395885584) 20:20:00
家有一老,如有一宝?

Wednesday, November 14, 2007

Self welcome!

An ordinary day... An ordinary beginning of my log.