Ich habe ein Problem beim Debuggen von PHP-Seiten. Wenn ich einen Haltepunkt einstelle, stoppt der Debugger in der Zeile, aber wenn ich f8, f7 oder f5 drücke, um fortzufahren, stürzt der Debugger ab.xdebug 2.4.0 php7.0, Absturz nach Haltepunkt
Dann sehe ich in der Ausgabe, im Browser nur was vor dem Haltepunkt gesendet wurde. Wenn ich keinen Haltepunkt einstelle, wird die Seite korrekt verarbeitet.
ich verwende:
Kubuntu 16.04
xdebug 2.4.0
PHP Version 7.0.8-3 + deb.sury.org ~ xenial + 1
NetBeans 8.1
das ist mein xdebug Abschnitt in der php.ini
[XDebug]
zend_extension = "/usr/lib/php/20151012/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir="\tmp"
xdebug.idekey=XDEBUG_IDEKEY
xdebug.remote_autostart=1
xdebug.collect_params=1
xdebug.remote_host=localhost
xdebug.remote_mode=req
xdebug.remote_handler=dbgp
xdebug.remote_connect_back=1
xdebug.max_nesting_level=200
xdebug.var_display_max_depth=1000
xdebug.var_display_max_children=256
xdebug.var_display_max_data=4096
request_terminate_timeout=600s
Ich habe mehrere verschiedene Konfigurationen in php.ini versucht, immer das gleiche Problem.
Wenn ipaste meine phpinfo() in https://xdebug.org/wizard.php das Ergebnis:
Sie bereits die neueste Version Xdebug läuft
Hat jemand eine Idee?
Bearbeiten.
Ich habe einen Fehlerhandler hinzugefügt; dass drucken Ausgabe:
Error: [8] Undefined variable: resq - xdebug://debug-eval:1
Terminating PHP Script
Und innerhalb der Fehlerbehandlung i nennen:
debug_print_backtrace();
, die drucken:
#0 handleError(8, Undefined variable: resq, xdebug://debug-eval, 1, Array ([_GET] => Array ([XDEBUG_SESSION_START] => netbeans-xdebug),[_POST] => Array(),[_COOKIE] => Array ([__utma] => 111872281.1893580102.1409742196.1409912396.1409912582.6,[_ga] => GA1.1.1893580102.1409742196,[HstCfa2834198] => 1442332630459,[HstCla2834198] => 1442821794939,[HstCmu2834198] => 1442332630459,[HstPn2834198] => 15,[HstPt2834198] => 51,[HstCnv2834198] => 5,[HstCns2834198] => 10),[_FILES] => Array(),[_ENV] => Array(),[_REQUEST] => Array ([XDEBUG_SESSION_START] => netbeans-xdebug),[_SERVER] => Array ([HTTP_HOST] => localhost,[HTTP_USER_AGENT] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_ACCEPT_ENCODING] => gzip, deflate,[HTTP_COOKIE] => __utma=111872281.1893580102.1409742196.1409912396.1409912582.6; _ga=GA1.1.1893580102.1409742196; HstCfa2834198=1442332630459; HstCla2834198=1442821794939; HstCmu2834198=1442332630459; HstPn2834198=15; HstPt2834198=51; HstCnv2834198=5; HstCns2834198=10,[HTTP_CONNECTION] => keep-alive,[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,[SERVER_SIGNATURE] =>
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
,[SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu),[SERVER_NAME] => localhost,[SERVER_ADDR] => 127.0.0.1,[SERVER_PORT] => 80,[REMOTE_ADDR] => 127.0.0.1,[DOCUMENT_ROOT] => /var/www/html,[REQUEST_SCHEME] => http,[CONTEXT_PREFIX] => ,[CONTEXT_DOCUMENT_ROOT] => /var/www/html,[SERVER_ADMIN] => [email protected],[SCRIPT_FILENAME] => /var/www/html/fierart/index.php,[REMOTE_PORT] => 36736,[GATEWAY_INTERFACE] => CGI/1.1,[SERVER_PROTOCOL] => HTTP/1.1,[REQUEST_METHOD] => GET,[QUERY_STRING] => XDEBUG_SESSION_START=netbeans-xdebug,[REQUEST_URI] => /fierart/index.php?XDEBUG_SESSION_START=netbeans-xdebug,[SCRIPT_NAME] => /fierart/index.php,[PHP_SELF] => /fierart/index.php,[REQUEST_TIME_FLOAT] => 1467579745.269,[REQUEST_TIME] => 1467579745))) called at [xdebug://debug-eval:1] #1 unknown() called at [/var/www/html/fierart/index.php:24]
danken Ihnen für die Unterstützung.
xdebug.profiler_output_dir = "\ tmp" ist falsch herum, aber ich glaube nicht, dass das Problem ist – Farkie
Infact, deaktivieren Sie den Profiler und versuchen Sie es erneut: xdebug.profiler_enable = 0 – Farkie
Vielen Dank für die Antwort, ich habe versucht, Profiler_output_dir und setzen ting profiler_enable = 0. Nichts geändert – RfBnRcTl