Skip to content

Instantly share code, notes, and snippets.

View duartedanilo's full-sized avatar
🏠
Working from home

Danilo Duarte duartedanilo

🏠
Working from home
  • Brazil
View GitHub Profile
@Potherca
Potherca / README.md
Last active March 10, 2025 12:44
HOWTO: Skip files outside PhpStorm project in Xdebug sessions

Introduction

In PHP development environments, it is not entirely uncommon to use an auto_prepend_file to add development-specific functionality to an application. Usually such a file is used for several projects at the same time. This means the prepend file resides somewhere in a more high-level location.

A more common practice is to use Xdebug te debug PHP code.

When combining these two with PhpStorm this will lead to the prepend file being marked as "not mapped".

Problem