"Waiting for xdebug session" problem with Eclipse/Xdebug remote debug

I came across this problem when I tried to setup remote debugging with xdebug: When I tried to debug a php web page it hanged up with the message - waiting for Xdebug session (57%). I have been struggling for a while, when i have realizes i have forgot to restart apache after installing and setting up xdebug, so if you have the same problem as I had, maybe the solution is simpler than you think :)

Another problem I had was that eclipse have not obeyed the breakpoints that xdebug have sent to it. Well, if remote debugging won't stop at breakpoints, the solution can be to comment out


from php.ini and add only