xdebug

Netbeans 8 and xdebug very very slow

烂漫一生 提交于 2019-12-23 19:26:50
问题 I've read other posts about this issue, but I can't get a satisfactory performance with xdebug 2.2.5 and netbeans 8.0.1 on a local web server (apache 2.4.9, php 5.5.12 on windows 7). Some pages load in over 40 seconds, worse than the remote server performances. This is the xdebug section on my php.ini after the recommandations taken from some other post: xdebug.remote_enable=1 xdebug.remote_handler="dbgp" xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug

Why is XDebug ignoring breakpoints from NetBeans 6.8?

我只是一个虾纸丫 提交于 2019-12-23 16:49:11
问题 I am running PHP 5.3.2, Apache 2.2.14 and xdebug 2.2.0rc1 on my Ubuntu 10.04 laptop, and I am trying to set up debugging on localhost in Netbeans 6.8. My problem is that breakpoints I set in Netbeans are being ignored. Otherwise it it seems to work correctly. For example, I get pretty var_dumps, xdebug traces, xdebug remote logs and I can also tick the box so that it breaks on the first line of the PHP script. Based on other websites and SO questions (e.g. SO1, SO2, SO3) I've checked all of

Weird var_dump behavior

老子叫甜甜 提交于 2019-12-23 13:07:12
问题 I have the following line of code: var_dump(array()); In one file, it outputs this: array (size=0) empty In the second file, it outputs this: string '<pre class='xdebug-var-dump' dir='ltr'> <b>array</b> <i>(size=0)</i> <i><font color='#888a85'>empty</font></i> </pre>' (length=119) Any ideas what's causing this in the second file? When I view the source of the rendered markup of the second file, I see this: <pre class='xdebug-var-dump' dir='ltr'><small>string</small> <font color='#cc0000'>'

Visual Studio Code (VSCode) - Error: Debug Adapter Process Has Terminated Unexpectedly

夙愿已清 提交于 2019-12-23 09:27:34
问题 I'm struggling with this error message. Sometimes I cannot run xdebug on Visual Studio Code after upgrading or restarting the editor. Here's a screenshot of the error: Can anyone help me with this? 回答1: After several minutes to find out what happens on my machine, i figure it out how to solve my problem. Because the xdebug is running based on port 9000 and i see on the Debug Console (VSCode) has message listen EADDRINUSE :::9000 , i think there is an another process running on port 9000 so i

How to enable formatted Xdebug errors and traces

主宰稳场 提交于 2019-12-23 08:50:44
问题 I am not sure when or what I have changed, but suddenly xdebug no longer renders its formatted stacktraces. Instead, it renders the stacktrtace without any HTML; here is an example; Whereas I would expect the orange tables like here I have searched the documentation, but cannot find any reference to a setting or config that would (un)set this. What did I do wrong? My xdebug.ini (Ubuntu, so /etc/php5/conf.d/xdebug.ini) is small: zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so xdebug

“Property access is not allowed yet” warning when using prepared statement

前提是你 提交于 2019-12-23 07:27:01
问题 I'm trying to make a log in system by using AES_ENCRYPT() to encode my password. But I have some warning from xdebug when trying to implement these codes: ... $key = 'd0gis=SUPER-cute'; $sql = "SELECT * FROM `users2` WHERE username = ? AND pwd = AES_ENCRYPT(?, ?)"; $stmt = $conn->stmt_init(); $stmt->prepare($sql); $stmt->bind_param('sss', $username, $password, $key); $stmt->execute(); $stmt->store_result(); ... When the debugger meets line 8 or $stmt->prepare($sql); , 6 same warning tables

Docker - port prevents listening

岁酱吖の 提交于 2019-12-23 04:43:40
问题 I am trying to setup xdebug integration on my docker-based setup. I am using Docker for Mac 1.12.0-rc2-beta17 with the "native" docker machine I have a container, with xdebug installed, exposing port 9000 and mapping it to the port 9000: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6950c2a2b05d app "/usr/bin/supervisord" 9 minutes ago Up 9 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:9000->9000/tcp, 0.0.0.0:2222->22/tcp app_1 When I'm trying to use PhpStorm

xdebug for PHP 5.2 on Windows 7 64bit

时光怂恿深爱的人放手 提交于 2019-12-23 04:26:10
问题 Previous posters have linked to http://fusionxlan.com/PHPx64.php to install 64-bit capable versions of xdebug. I need PHP 5.2 compatibility for Magento, and fusionxlan has disappeared and archive.org doesn't have a copy. Does anyone have a copy of the fusionxlan download or dll that they can share? Thanks, JD 回答1: So I finally found a solution to this. The combination of the recently released (both of them) Netbeans 6.9 and Xdebug 2.1.0 thread-safe 5.2 VC6 (32-bit) works a treat on Windows 7

Curl with XDebug on NetBeans

点点圈 提交于 2019-12-23 04:20:43
问题 I have a strange problem when trying to debug with Xdebug on Netbeans ( on Windows 8 ) a curl request. Here is my code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://localhost"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $response = curl_exec($ch); if ( curl_errno($ch) ) { $result = 'ERROR -> ' . curl_errno($ch) . ': ' . curl_error($ch); echo $result; } print "\n response = \n"; var_dump(

Curl with XDebug on NetBeans

雨燕双飞 提交于 2019-12-23 04:20:13
问题 I have a strange problem when trying to debug with Xdebug on Netbeans ( on Windows 8 ) a curl request. Here is my code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://localhost"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $response = curl_exec($ch); if ( curl_errno($ch) ) { $result = 'ERROR -> ' . curl_errno($ch) . ': ' . curl_error($ch); echo $result; } print "\n response = \n"; var_dump(