'phpStorm, xdebug: is there a way to exclude certain directories from debugging?

When I'm debugging, I would like to exclude certain directories - for example, every time a class is instantiated, my debugger steps into Doctrine's ClassLoader::loadClass() which is annoying... I tried adding those directories I want to exclude in Settings / PHP / Debug / Skipped Paths, but that doesn't help...



Solution 1:[1]

What I found in PhpStorm (I don't know since which version it's there - mine now is 2018.1): Lanugage & Frameworks > PHP > Debug > Step Filters.

For Symfony 4, these Skipped Methods brought peace to debugging:

  • Composer\Autoload\ClassLoader->findFileWithExtension
  • Composer\Autoload\ClassLoader->findFile
  • Symfony\Component\Debug\DebugClassLoader->loadClass
  • Symfony\Component\Debug\DebugClassLoader->checkClass
  • Symfony\Component\Debug\DebugClassLoader->getOwnInterfaces

Solution 2:[2]

That function does exist on PHP Storm 2016.2

Under Languages & Frameworks > PHP > Debug > Skipped Paths

PHP Storm 2016.2

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TheFrost
Solution 2 nwrman