xdebug

Xdebug successfully connects to DBGP clients, but won't stop at breakpoints

那年仲夏 提交于 2019-12-29 01:40:08
问题 I have Xdebug 2.1 installed, and running with PHP 5.2.13. It can successfully connect to multiple DBGP clients (i.e. the xdebug.remote_log shows communication back and forth, and the clients themselves also show the incoming connection), but it doesn't stop at breakpoints. I have tried NetBeans, MacGDBp and also the command-line debugclient bundled with Xdebug. A typical exchange looks like: Log opened at 2010-07-20 09:33:17 -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http:/

mysqli + xdebug breakpoint after closing statement result in many warnings

£可爱£侵袭症+ 提交于 2019-12-28 05:49:06
问题 I have a piece of code like this: $conn = new mysqli($host, $username, $passwd, $dbname); ... $stmt = $conn->prepare('SELECT ...'); $stmt->bind_param(...); $stmt->execute(); $stmt->bind_result(...); while($stmt->fetch()) { // do something here } $stmt->close(); ... // do something more here that has absolutely nothing to do with $stmt This works perfectly fine. I get the results I expected, there are no errors or anything that is not supposed to happen. But if I set a break point (Xdebug 2.2

Tomcat7启用远程调试DEBUG功能-2017年

余生长醉 提交于 2019-12-25 16:19:03
前言 工作上可能用的上这个功能,因为将项目放到服务器(测试,生产还是别开的好)后,有些问题需要DEBUG,没有断点非常不方便啊。 而且网上很多资料说的乱七八糟,图不对版的(自己贴的图和你自己写的东西都不一样!严重误导别人!!!) 自己踩完坑后MARK一下 Tomcat Windows下 进入目录下的bin目录,编辑打开 startup.bat 在前面添加:SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 完成一行,不要断开。 Linux下(CentOS) 在catalina.sh中的首行添加: CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" 启动~看是否弹出信息(一闪而过) Eclipse 在Run下找到Debug Configurations 中文改成对应的信息。 然后点击 Debug 之后设置断点什么的就和本地差不多了 来源: https://www.cnblogs.com/liangwen/p/7405079.html

php exceeds execution time on throwing an exception in recursion

泄露秘密 提交于 2019-12-25 10:58:08
问题 Edit: rewrote from scratch, the old question wasn't useful I've got an error occuring after throwing an exception inside recursion. The exception is not caught anywhere, it should just pop up and show uncaught exception error , which it doesn't. Instead, it produces time limit hit kind of error. If I put var_dumps in my code, it looks like the exception is thrown, but then it just freezes and fails after it exceeds limit. this is part of the recursive function: if($this->prvky[$iA]->ini < 1 |

[日常] windows下使用vscode配合xebug调试php脚本

和自甴很熟 提交于 2019-12-25 05:40:17
windows下使用vscode配合xebug调试php脚本 要下载有php_xebug.dll扩展的版本,最新版可能没有这个扩展,php7.3应该是有的,php7.3.4好像没有 默认是不加载这个扩展的,需要在php.ini中加载上这个扩展,一定得注意是zend_extension zend_extension=xdebug 调试cli脚本的php也需要配置下面这个,如果没有的话也是无法调试的 [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 stream_socket_pair — 创建一对完全一样的网络套接字连接流 这个函数通常会被用在进程间通信(Inter-Process Communication) 来源: https://www.cnblogs.com/taoshihan/p/11990855.html

PHP script stops without error message (Which error type?)

不羁的心 提交于 2019-12-25 04:53:51
问题 a PHP script stops without an error message, if I change the signature of a method of a class, which implements a intereface, e.g.: interface A { public function somefunction(); } class B implements A { public function somefunction(XY $xy); { ... } } This is an error of course, but there is no error message shown. What is the name of this error type? (I already searched a lot, but with the wrong phrases obviously) How can I log or output this error? I'm using PHP 5.3.1 (with XAMPP for Windows

Debug next PHP page in Netbeans from Firefox

╄→гoц情女王★ 提交于 2019-12-25 01:09:17
问题 I have recently switched to using Netbeans (6.7 RC1) on a Mac, using MAMP as stack. I have Xdebug installed and working. Previously I used Zend Studio 5.5 with the Firefox Zend toolbar. This had a great feature that allowed you to click 'Debug next page'. When you submitted the form it would then start the debug process. How do I do something similar with Netbeans ? I would like to be able to launch the debugger from Firefox, so that all GET and POST variables were automatically passed to the

Docker / Xdebug Over LAN Server Multiple Developers

半世苍凉 提交于 2019-12-24 23:28:18
问题 I'm attempting to setup Xdebug on some containers we have at the office. We have a Ubuntu server running Docker with the firewall wide open over LAN. Ideally each developer would like to use PhpStorm (which we work over a mounted samba drive), to debug code on various websites. We use Apache and have the jwilder nginx proxy to server multiple sites in docker. I've attempted to setup a DBGp proxy with no luck so far. php.ini looks like this: xdebug.remote_enable=1 xdebug.remote_host

Debugging Laravel project in NetBeans with breakpoints using xdebug

↘锁芯ラ 提交于 2019-12-24 19:26:42
问题 Debugging the normal PHP projects without Laravel works fine. But when I try the same with Laravel project it's not working and keeps waiting for debugger. I tried and checked all the port number and config. I am now out of ways to fix it. I am using WAMP Laravel 5.4, PHP 5.6 and NetBeans 8.1 Please help me in fixing this 来源: https://stackoverflow.com/questions/47520496/debugging-laravel-project-in-netbeans-with-breakpoints-using-xdebug

PhpStorm/Xdebug not stop in breakpoints

不想你离开。 提交于 2019-12-24 19:09:43
问题 I have problem to make xdebug working with PhpStorm, from log it's looks like that xdebug working fine, but PhpStorm from some reason not oblivious from it. Also, the debugger working if I check "Break at first line in PHP scripts" from PHP->Debug setting menu, but than if I click "Resume program[F9]) it's skip my breakpoint, the telephone icon ("listen for PHP Debug connections") I think I configure everything right and also pass the validation check: my 20-xdebug.ini: zend_extension=xdebug