如何避免使用 Xdebug 进入 vendor/framework 代码?

How to avoid step into vendor/framework code with Xdebug?

使用 VSCODE 和 PHP 调试扩展,使用 PHP 的 Xdebug 调试器,有一种方法可以在调试时过滤 vendor/framework 代码以避免 "step into"那个代码?

来自官方文档中的示例,位于https://xdebug.org/docs/all_functions#xdebug_set_filter

xdebug_set_filter( XDEBUG_FILTER_TRACING, XDEBUG_PATH_EXCLUDE, [ __DIR__ . "/vendor/" ] );