phptools Hi, Is it possible to skip over some codes when stepping through with XDebug? blacklist to skip all code in vendor folder using configuration whitelist to always step through code in vendor/mycode using configuration skip function/method/class based on its docblock I guess what I'm saying is, XDebug will still connect to VSCode, but PHP Tools can avoid stepping through unnecessary code based on configuration.
JakubMisek Hello, Yes, you can exclude paths to be stepped through when debugging - exceptions and debug steps will be ignored in there, breakpoints will be still hit. Use the configuration "exclude" or "ignore" in your launch.json /* ignore files in 'vendor' folder from being stepped into and exceptions */ "exclude": [ "**/vendor/**" ] More details at: https://docs.devsense.com/en/vscode/debug/launch-json#ignored-paths I hope it helps, thanks!
phptools Thanks! Is there a way to exclude all but 1 or 2? What I'm trying to do is skip only libraries that don't belong to me.
JakubMisek Currently, there is only the "exclude" option, so the 3rd party libraries have to be listed (using wildcards). I don't have any workaround for that, but I'll note the idea into our to-do list.
phptools Cool! Since this is a skip/exclude list, perhaps we can add an "except" option? i.e. exclude all these, except some Thank you!
JakubMisek I was thinking, maybe prefixing the pattern with ! (exclamation mark) to make it a negation would be more readable. i.e.: "exclude": [ "!vendor/mypackage/**", "!app/**", ]
JakubMisek we have released the update, the documentation is available at https://docs.devsense.com/en/vscode/debug/launch-json#ignored-paths the launch.json now accepts the following configuration (same as noted above): "exclude": [ "!vendor/mypackage/**", "!app/**", ] Thank you for the feedback!