I have following problem about debugging PHP files
in Netbeans
using xdebug
:
when I debug directly PHP file
everything works OK.
BUT:
If I debug whole file (starts in index.html
) and after I click submit button which execute my PHP file
, where is the breakpoint, It doesn't work.
I wanna put breakpoint to PHP file
to see what info I've received from my form in HTML
page.
I want to stop program just after those 2 variables, sent through ajax:
$username = $_REQUEST["username"];
$password = $_REQUEST["password"];
Is it even possible?. Thank you!
It's not necessary to modify your form code to enable debugging, as suggested by another answer here.
This answer was partially sourced from Launch XDebug in Netbeans on an external request.
For the Netbeans settings look at my answer it's for linux but may help you.
In your index.html replace your
action=
with