0

I have a problem in debugging symfony2 applications in PHPStorm with xdebug because of Request::createFromGlobals() method. All other project debugs well.

The problem occurs, when the execution process meets the invocation of this method, the debugger just turns off without any error and the page is rendered.

Does someone know how to fix it?

1
  • I've decided to use php+apache that is in MacBook by default, only setup it a little and it works. Still don't know what was wrong with MAMP+Symfony2 Commented May 21, 2013 at 17:04

2 Answers 2

1

Try change app_dev.php to:

...
//$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
$loader = require_once __DIR__.'/../app/autoload.php';
require_once __DIR__.'/../app/AppKernel.php';

$kernel = new AppKernel('dev', true);
//$kernel->loadClassCache();
$request = Request::createFromGlobals();
...
Sign up to request clarification or add additional context in comments.

3 Comments

No - unfortunately it didn't help.
I did this (just changed the loader to autoload.php) and it worked for me. What a nightmare!
Didn't think on this, good point, but it didn't work to me either
0

I had the same issue with PhpStorm 7. The solution was to go into project settings and select Servers under PHP. Choose the server you are using (localhost in my case) and explicitly setup the directory mapping in the symfony project folder.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.