Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

When I start debugging and use another script on the server (e.g. Adminer), i.e. a script outside the project that is not intended to be debugged, the script is paused by PhpStorm and following two warning appear:

  • The script '[path to script]' is outside the project.
  • Click to set up path mappings

Now, I have to press F9 (i.e. resume) to continue script execution. It is very annoying. Can I just exclude these scripts from debugging?

share|improve this question
1  
The technique I use to prevent this is running other scripts in a different browser (e.g. debug in Firefox, run other scripts in Chrome). – Scott Wilson May 25 at 9:27
Hmm, it is a nice workaround. Thanks. – v6ak May 25 at 9:28
1  
Hmmm .. I wonder what these options are for: Settings | PHP | Debug | Xdebug | Force break at first line when no path mapping specified and ... | Force break at first line when a script is outside of project ... – LazyOne May 25 at 12:54
@LazyOne That works. BTW? why didn't you post it as a response? – v6ak May 25 at 16:35

1 Answer

up vote 1 down vote accepted

There are few options just for that at Settings | PHP | Debug | Xdebug

  • Force break at first line when no path mapping specified
  • Force break at first line when a script is outside of project

There is also Settings | PHP | Debug | Skipped Paths, which can be useful in other scenarios when you want to ignore debug requests that were initiated for specific URL, but still debug other URLs. Help page here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.