Exclude directory from search BUT not from debugging

Some directories in my project are built automatically by Remix.run

I don't want my PhpStorm Search to look into them by default.

However, if I exclude that directory, it can't stop at a breakpoint in those files when debugging javascript.

I think I need something in line with “Autogenerated” like the option available in IntelliJ Idea. How do I approach this in PhpStorm?


You can create a custom scope that won't include the directory and then use it in the search.