Add warnings for xdebug, fixes #2425