NetBeans中,Xdebug的:从开始调试器 [英] Netbeans, xdebug : start debugging from browser
问题描述
我有以下关于的Netbeans
使用调试 PHP文件
问题的XDebug
:
当我直接调试 PHP文件
一切正常确定。
I have following problem about debugging PHP files
in Netbeans
using xdebug
:
when I debug directly PHP file
everything works OK.
但是:
如果我调试整个文件( index.html的
开始),我点击提交后按钮,执行我的 PHP文件
,这里是断点,它不工作。
我想把断点 PHP文件
来见我已经从我的形式 HTML
页获得什么信息。
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.
我要停止程序只是那些2个变量,通过AJAX发出后:
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!
推荐答案
有关Netbeans的设置看看我的回答它对于Linux,但可以帮助你。
For the Netbeans settings look at my answer it's for linux but may help you.
在您的index.html替换您的 =行动
与
<form action="yourphpfile.php?XDEBUG_SESSION_START=netbeans-xdebug" method="post" name="FormName">
这篇关于NetBeans中,Xdebug的:从开始调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!