xdebug

debugging cakephp with netbeans - no variables

我怕爱的太早我们不能终老 提交于 2019-12-02 09:37:05
问题 I set up cakephp debugging with netbeans and xdebug following these instructions http://www.tiplite.com/cakephp-debug-in-netbeans/ . I got it working, but I cannot see any variables when I get to the breakpoints 回答1: There is an option to enable variable listing in php.ini during debugging. There is likewise an option for that in NetBeans settings, under PHP. It is unstable, though. 来源: https://stackoverflow.com/questions/5063410/debugging-cakephp-with-netbeans-no-variables

xdebug does not activate the breakpoint

谁说胖子不能爱 提交于 2019-12-02 09:23:42
问题 I am using Netbeans to do my project(codeigniter) and my xdebug is configured in php ini. The following are the setting: zend_extension = "C:\xampp\php\ext\php_xdebug.dll" ;xdebug.profiler_append = 0 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 0 ;xdebug.profiler_output_dir = "C:\xampp\tmp" ;xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_autostart = 1 xdebug.idekey =

How do you debug a LONG RUNNING php script?

ぃ、小莉子 提交于 2019-12-02 09:15:20
The problem is that the script hangs up after some long time. strace returns something like this and nothing else: Process 7286 attached - interrupt to quit restart_syscall(<... resuming interrupted call ...>) = 0 poll([{fd=13, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout) clock_gettime(CLOCK_MONOTONIC, {1817569, 74651533}) = 0 clock_gettime(CLOCK_MONOTONIC, {1817569, 74734744}) = 0 clock_gettime(CLOCK_MONOTONIC, {1817569, 74812047}) = 0 poll([{fd=13, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 1000) = 0 (Timeout) poll([{fd=13, events=POLLIN|POLLPRI|POLLRDNORM

eclipse PHP开发debug配置

烈酒焚心 提交于 2019-12-02 08:41:19
1:eclipse开发php全过程的搭建带debug的配置 2:先安装好java运行环境这个eclipse运行靠的就是这个,自己来安装吧。 3:安装好php的运行环境,我是apache+php自己配置的,php的版本是5.3.apache的版本是2.2。我把apache的主目录设置在了我的D:\phproot。我的php的主目录在 D:\php-5.3.8-Win32-VC9-x86。下面才是我要说的重点: 1:下载eclipse pdt all in one,地址是:http://downloads.zend.com/pdt/all-in-one/helios/SR-1/eclipse-php-helios-SR1-win32.zip 2:下载xdebug(因为我这个php的版本是ts的也就是线程安全的,而常用的Zend Debuger我没看到对于5.3的这个版本,所以选择了xdebug,没想到xdebug的配置更简单反而),下载地址是:http://www.xdebug.org/files/php_xdebug-2.2.1-5.3-vc9.dll 3:把下载后的dll放在的地方是: D:\php-5.3.8-Win32-VC9-x86\ext\php_xdebug-2.2.1-5.3-vc9.dll 4:在php.ini下添加下列语句: [html] view plain

VSCode + Xdebug + PHP configuration

a 夏天 提交于 2019-12-02 07:41:47
I'm trying to set up Xdebug with VScode, but whenever I set breakpoints it's just ignoring it. I installed https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug and followed the instructions (Windows), I also used the Xdebug Wizard, here is my configuration : Vscode - launch.json { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9000 }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "${fileDirname}", "port": 9000 } php.ini zend_extension = D:\wamp\bin\php\php7.1.16\ext\php_xdebug-2.6.1-7.1

Debug Symfony2 projects in PHPStorm

断了今生、忘了曾经 提交于 2019-12-02 07:33:13
I have a problem in debugging symfony2 applications in PHPStorm with xdebug because of Request::createFromGlobals() method. All other project debugs well. The problem occurs, when the execution process meets the invocation of this method, the debugger just turns off without any error and the page is rendered. Does someone know how to fix it? Try change app_dev.php to: ... //$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; $loader = require_once __DIR__.'/../app/autoload.php'; require_once __DIR__.'/../app/AppKernel.php'; $kernel = new AppKernel('dev', true); //$kernel-

Can't get PHP debugging to work with Komodo (but I'm almost there!)

独自空忆成欢 提交于 2019-12-02 07:10:39
I posted about this a week or so ago but since then I've done some further troubleshooting so I thought it was worth posting again: I'm trying to set up PHP debugging in Komodo 7, using the Xdebug extension that ships with Komodo. The extension seems to be working fine, and Komodo responds when I try and start a debug session. However, Komodo doesn't let me step-through my PHP code; instead it just runs through the code in a pane in the bottom-right of the Komodo window. For the record, I don't have any Mapped URIs. I'd really appreciate any help anyone's able to offer on this as I've got a

debugging cakephp with netbeans - no variables

梦想的初衷 提交于 2019-12-02 07:09:11
I set up cakephp debugging with netbeans and xdebug following these instructions http://www.tiplite.com/cakephp-debug-in-netbeans/ . I got it working, but I cannot see any variables when I get to the breakpoints There is an option to enable variable listing in php.ini during debugging. There is likewise an option for that in NetBeans settings, under PHP. It is unstable, though. 来源: https://stackoverflow.com/questions/5063410/debugging-cakephp-with-netbeans-no-variables

Methods for an Xdebug Exception class

青春壹個敷衍的年華 提交于 2019-12-02 06:34:14
问题 Is it possible to see the methods of the extended Exception class Xdebug creates? I want to get at the HTML formatted stack trace. 回答1: So after hacking at it, there's no method like Niels showed but there's a public property called $exception->xdebug_message that has the HTML formatted message. Don't forget to wrap it in a table tag if you are placing it in a HTML page. echo '<table>'; echo $exception->xdebug_message; echo '</table>'; 回答2: To get the fancy HTML outputted trace: ob_start();

在 PHPStorm 中如何对远程服务使用 xdebug 进行断点调试

给你一囗甜甜゛ 提交于 2019-12-02 06:13:46
1. 安装 xdebug 1.1. 下载、安装 ➜ ~ wget https://xdebug.org/files/xdebug-2.4.1.tgz ➜ ~ tar zxf xdebug-2.4.1.tgz ➜ ~ cd xdebug-2.4.1 ➜ ~ phpize ➜ ~ ./configure --with-php-config=/usr/local/php/bin/php-config ➜ ~ make ➜ ~ make install Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/ 1.2. 修改配置文件 ➜ ~ php -i | grep php.ini Configuration File (php.ini) Path => /usr/local/php/etc Loaded Configuration File => /usr/local/php/etc/php.ini ➜ ~ vim /usr/local/php/etc/php.ini # 追加加入以下配置 [XDebug] ;zend_extension = xdebug.so zend_extension = /usr/local/php/lib/php/extensions