Part of a project I am working on includes a postback URL, let's call it "postback.php".
In the live environment, another server is calling "http://mydomain.com/postback.php?p1=v1&p2=v2".
For testing I set up a simple script, called "test_postback.php". This script simply provides a form where I can fill in parameters, and then when posted it build the url and gets a response using the file() function. E.g.
$p1 = $_GET["p1"];
$p2 = $_GET["p2"];
$url = "http://localhost/postback.php?p1=$p1&p2=$p2";
But when I ran it I was getting an error back. I tried setting breakpoints, and although it broke in "test_postback.php" it didn't break in "postback.php".
I more or less understand why - "test_postback.php" is called from the browser, but "postback.php" itself is called from PHP.
"postback.php" is quite complex and relies on a number of other scripts, so it took me a while to track down the error.
Is there some way that I can get PHPStorm to go into debug mode for this situation?