Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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...

like image 826
KOHb Avatar asked Nov 01 '12 15:11

KOHb


1 Answers

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
like image 110
TheFrost Avatar answered Oct 07 '22 11:10

TheFrost