xdebug

How to change the colors of xdebug output?

試著忘記壹切 提交于 2020-01-11 11:58:16
问题 The red and yellow standard colors of xdebug can hurt your eyes after a few hours. http://www.designified.com/blog/article/76/restyling-xdebug-output describes how to replace the style with javascript requiring jquery. I was looking for a more straight forward way and finally found one. 回答1: The solution is the !important tag, it overrides the existing style values. Use the following css code to avoid eye cancer when using xdebug: .xdebug-error { font-size: 12px !important; width: 95%

Does xdebug beautify var_dump?

微笑、不失礼 提交于 2020-01-10 17:43:48
问题 According to this article, http://devzone.zend.com/article/2803, var_dump is supposed to beautify the outputs. I have installed xdebug on my local host with PHP Version 5.3.3-1ubuntu9.2. I have this in my php.ini outputs. This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans However when I use var_dump(), nothing changes. Does xdebug really beautify the var_dump

Waiting for the XDebug Session 57% in Eclipse PDT

北慕城南 提交于 2020-01-10 01:17:25
问题 Browsing the hints when I write this message it seems this is a tough question with all kind of patches, but no clear answer ... Anyway, I try my chance, here it is. I'm using Eclipse Helios PDT on Ubuntu 10.04, with XDebug and the corresponding section in php.ini as following: xdebug support enabled Version 2.0.5 Supported protocols Revision DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $ GDB - GNU Debugger protocol $Revision: 1.87 $ PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $

Xdebug Notepad++ DBPG Plugin local and global context not showing

萝らか妹 提交于 2020-01-07 07:09:40
问题 I am using Xdebug with the DBGP Notepad++ plugin I can add breakpoints fine, the watchlist will show arrays and sometimes objects and hovering over variables shows their values. However the local and global variables tabs don't show anything and whenever I hover over an object or it's method or refresh local context the plugin disconnects with an 'Undefined error' popup. No error seems to be printed in the xdebug log. I am using Notepad++ 6.4.3, Xdebug 2.2.0, Php 5.4.4, Xampp on Windows with

Xdebug and PhpStorm remote does not work

不想你离开。 提交于 2020-01-07 06:34:11
问题 Is there a possibility to check if the web server is sending something to Chrome? I have setting up PhpStorm and the web server in the same way, I have read in 1000 tutorials, but my PhpStorm doesn't receive anything from chrome. Here are some settings: php.ini zend_extension="/usr/lib/php/20160303/xdebug.so" xdebug.coverage_enable=on xdebug.default_enable=on xdebug.profiler_enable=on xdebug.profiler_output_dir="/tmp" xdebug.remote_autostart=on xdebug.remote_port=9001 xdebug.remote_enable =

Spring Boot Debug调试,日后必定有用!

家住魔仙堡 提交于 2020-01-07 04:20:33
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近发现 Spring Boot 本地不能 Debug 调试了,原来 Spring Boot 升级后,对应插件的命令参数都变了,故本文做一个升级。 背景: Spring Boot 项目在使用 Spring Boot Maven 插件执行启动命令 spring-boot:run 的时候,如果设置的断点进不去,要进行以下的设置。 官方解决方案: By default, the run goal runs your application in a forked process. If you need to debug it, you should add the necessary JVM arguments to enable remote debugging. The following configuration suspend the process until a debugger has joined on port 5005: 直接看怎么做吧! 1、添加 JVM 参数 在插件 spring-boot-maven-plugin 里面加上 jvmArguments 配置。 <project> ... <build> ... <plugins> ... <plugin> <groupId>org

idea远程debug

跟風遠走 提交于 2020-01-06 18:22:37
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一、本机配置 1,打开Inteliij IDEA,顶部菜单栏选择Run-> Edit Configurations,进入下图的运行/调试配置界面。 2,点击左上角'+'号,选择Remote。分别填写右侧三个红框中的参数:Name,Host(想要指定的远程调试端口)。 3,点击界面右下角应用按钮即可。 二、服务器端开启调试模式,增加JVM启动参数,以支持远程调试 服务器端的catalina.sh文件,在Tomcat的安装目录下,复制到本地,进行编辑,在第一行添加参数配置如下,完成后粘贴回去。 文本:CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8089" 来源: oschina 链接: https://my.oschina.net/u/3631797/blog/3153713

xdebug does not show the content of array?

若如初见. 提交于 2020-01-06 07:12:48
问题 I am using vim and xdebug to debug my php program, when I press F12 to get an array value, the result is just (array). How to show the content of the array? $loadedModels = self::$_loadedModelFiles; When the cursor is on $loadedModels, and I press F12 , the result is as bellow: / {{{1 / => property_get: loadedModels $command = 'property_get'; $loadedModels = (array) / }}}1 / this is my xdebug config: Directive Local Value Master Value xdebug.auto_trace On On xdebug.collect_assignments Off Off

Debugging with XDebug + PHPStorm force me to always step into

做~自己de王妃 提交于 2020-01-06 03:59:05
问题 I am trying to debug my Codeception tests. My debug platform using PHPStorm + XDebug is working great when using from browser with the right IDE-KEY as cookie. However, when trying to debug codecept using the CLI I encounter the following problem: If I put a breakpoint in my Cest class, behavior is normal. I am able to skip functions and click "Resume" to stop debugging. But whenever I put a breakpoint that is in my code (I.E controllers or my namespace classes), xdebug becomes unusable: If I

How to show all PHP runtime errors in browser using Javascript

六眼飞鱼酱① 提交于 2020-01-06 01:30:08
问题 Normally in development cycle when one is programming PHP and testing, one sees just one error for each run. You can see syntax errors using php.exe or using a online tool pilliapp or phpcodechecker. However, runtime errors, like undefined variable, you cannot detect. You can use XDebug for tracing but it's boring. How one can show all PHP runtime errors once in browser? So the user can handle all silly problems at the same time, in unobtrusive way. (Not the logical errors). 回答1: Forums and Q