python - php xdebug in netbeans - how to see values of variable? -
i have enabled xdebug
in php.ini
file follows:
[xdebug] zend_extension = "d:\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "d:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.trace_output_dir = "d:\xampp\tmp"
and netbeans setting same manual. when try ctrl+f5 (after setting breakpoint in line 140) shows follows:
how can see value of $user_id
(or other variable's value) in netbean's console below??
or there way available debug php code setting breakpoint , inspect variable value in cli python import pdb;pdb.set_trace()
??? code break in particular line (when action taken submit form or reload browser) , can inspect each variable before breakpoint continue
after breakpoint
1.review php.ini configuration.
xdebug.remote_enable = 1 xdebug.remote_host = localhost xdebug.remote_port = 9000
also make sure zend_extension = "d:\xampp\php\ext\php_xdebug.dll" correct. on computer have / instead of \, not sure if matters...
2.restart server (not sure if needed).
3.check netbeans configuration in tools->options->php->debugging
4.check project properties : "browser" , "run configuration"
if correct, can set break point within netbeans , laung debug: "debug"->"debug project"
Comments
Post a Comment