xdebug

SpringBoot 启动参数设置环境变量、JVM参数、tomcat远程调试

两盒软妹~` 提交于 2019-12-03 18:04:05
-> 博客已准备转移到博客园 <- java命令的模版:java [-options] -jar jarfile [args...] 先贴一下我的简单的启动命令: java -Xms128m -Xmx256m -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8081,suspend=n -jar /data/app/test.jar --spring.profiles.active=dev & 其中: -Xms128m 设置的是JVM堆最小内存为128m -Xmx256m 设置的是JVM堆最大内存为256m 这里有个问题是-Xmx指定的内存不包括jvm运行中使用的本地内存,所以如果有NIO等涉及到本地内存的情况时,该java进程占用的总内存会超过-Xmx设定的数值 -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8081,suspend=n 设置debug模式,允许tomcat远程连接服务器调试,调试端口可指定,此处为8081 /data/app/test.jar 指定需要执行的jar包的路径 --spring.profiles.active=dev 设定SpringBoot运行环境为dev环境 & 后台模式执行 来源: oschina 链接: https:/

PHP debug configuration hangs - Waiting for XDebug session (57%) [duplicate]

泄露秘密 提交于 2019-12-03 17:18:40
Possible Duplicate: eclipse xdebug session never completes When I try to debug a php web page it hangs up. The message - waiting for XDEbug session. At the lower right corner there is another message - launching mydebugconf: (57%). I am running XAMPP for Windows 1.7.7 with PHP 5.3.8 and Apache 2.0 on an x86 Windows 7 computer. phpinfo() - xdebug xdebug.auto_trace Off Off xdebug.collect_assignments Off Off xdebug.collect_includes On On xdebug.collect_params 0 0 xdebug.collect_return Off Off xdebug.collect_vars Off Off xdebug.default_enable On On xdebug.dump.COOKIE no value no value xdebug.dump

Installing and enabling Xdebug on MAMP PRO

痴心易碎 提交于 2019-12-03 16:29:59
I am trying to set up Xdebug on my MAMP PRO installation. I tried xdebug.org/wizard.php to get the correct Xdebug version with custom installation instructions but I got stuck. According to step 4 in the tailored installation instructions I should get the following output: Configuring for: ... Zend Module Api No: 20100525 Zend Extension Api No: 220100525 But my output reads as follows: Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Next I try the instructions at xdebug.org/docs/faq#custom-phpize because the tailored installation

Debug Symfony2 with XDebug and PHPStorm

那年仲夏 提交于 2019-12-03 16:29:06
I try and try, but I can't get a proper debug configuration for Symfony2 with XDebug in PHPStorm. I've already checked and rechecked phpstorm xdebug with a symfony2 project and How to set up remote debugging for symfony2 with phpstorm and xdebug and followed the jetbrains tutorials, but no way to make this work. It's an rest api with Symfony2 what I am trying to debug. So far I have a Virtual Host with Apache2 which works fine in the URL host: sd.lo The routing prefix for the api is /api/v1 so accessing http://sd.lo/api/v1/clients works fine and I receive a list of clients Installation XDebug

eclipse xdebug调试

那年仲夏 提交于 2019-12-03 16:17:48
1:eclipse安装php插件,使其eclipse支持php,已经支持php,请看下一步骤 官方插件地址: http://www.eclipse.org/pdt/ name:php location: http://download.eclipse.org/tools/pdt/updates/3.7 选择上面的一项,因为我这里已经被安装,所以下面显示 “All items are installed" 一直点击 NEXT 直到安装完成 2:使eclipse安装支持xdebug 2.1 使用php软件环境集成包 xampp ,里面已经集成了xdebug,进入php.ini文件只需要把注释去掉 zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = localhost xdebug.remote_port = 9000 配置eclipse信息 点击 Windows->Preferences 选择PHP->Servers,没有就新建一个 新建信息: 选择PHP Executables ,没有就新建一个 选择你安装php相对应的版本: 选择PHP Debug 到这里,配置已经完成

What does “XDEBUG NOT LOADED AS ZEND EXTENSION” warning means?

ぃ、小莉子 提交于 2019-12-03 15:48:42
问题 Xdebug is loaded, but not loaded as a zend extension. What does it mean? How to resolve this problem? 回答1: This error means that you used "extension=" to load Xdebug. That could be in your normal php.ini, or in a file called xdebug.ini that some distributions like to add. In any case, Xdebug needs to be loaded as a Zend extension for certain features such as single step debugging. As Xdebug is not meant to work as a normal extension, it might crash and burn too. The syntax for loading Xdebug

xdebug插件攻击

≯℡__Kan透↙ 提交于 2019-12-03 13:51:55
title: xdebug插件攻击 date: 2017-09-30 17:08:38 tags: 前一阵突然看到一个有关于xdebug的一个攻击面,不得不说这个想法还是很有意思的.自己搭环境记录一下. 关于Xdebug的攻击 刚学php的时候用的phpstorm,当时为了动态调试,配置Xdebug配了很久,当时对这个有一个比较模糊的认识,当时觉得是在浏览器还有ide还有server之间是有某些数据交互的,第一次配的的时候当时ide一直监听收不到数据,当时想要是自己可以操作数据来测试哪里出问题就好了,一直耿耿于怀,前一阵突然看到一个有关于xdebug的一个攻击面,不得不说这个想法还是很有意思的. Xdebug调试的工作流程 1.ide开始调试监听本地9000端口 2.浏览器发送一个带有XDEBUG_SESSION_START的请求发给服务端 3.服务端收到这个参数,就会通知xdebug 4.xdebug收到通知了就会向来源的地址的9000端口发送一个请求 5.ide收到请求并响应建立连接 之后就是相互通讯然后调试代码了 首先Xdebug有关于远程调试是使用的 DBGp 协议 下面是有关于通讯流程的一个演示 利用条件 一般来说关于 xdebug.remote_host 这个配置默认是localhost也就是默认通讯的的都是localhost,这明显不利于我们的利用 但是如果

Why are variables not showing in the debug window in PhpStorm?

ε祈祈猫儿з 提交于 2019-12-03 12:32:16
问题 I have Xdebug working, I can stop at and step through breakpoints. But the variables that it has already reached do not show up in the Variables window. See the picture - variables $test and $test2 do not show up. My config in php.ini is [XDebug] zend_extension = /usr/lib/php/20170718/xdebug.so xdebug.remote_host = 127.0.0.1 xdebug.remote_port = 10000 xdebug.remote_mode = req xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.idekey = "PHPSTORM" 回答1: I've been banging my head against

Ubuntu phpstorm : Interpreter is not specified or valid

送分小仙女□ 提交于 2019-12-03 12:04:14
I am configuring debugger on phpstorm on Ubuntu. I easily could set interpreter's path like C:xampp/php properly on Windows. But linux should have different path for interpreter. I searched on this site a lot and on google too but could not get the answer. What should be php's interpreter path so that phpstorm recognizes it and thus i can do debugging? Anything missing?? Thanks. I think there's been a misunderstanding. include path should point to a folder containing PHP files, not PHP interpreter! Here's where you need to set the address: As the other answer pointed out, you can find the path

Zend Studio12.0配置Xdebug

巧了我就是萌 提交于 2019-12-03 11:42:43
事情的原因是这样的,最近使用piwik时增加了个插件,需要phpRedis扩展支持。涉及了php和redis的一些整合操作,于是今天使用ZendStudio的调试功能,来研究一番piwik是如何使用redis的。可是问题来了,zend Studio的PHP版本是5.5.7,网上也没有找到对应的php_redis.dll扩展。难道就没有办法了吗? 因为我除了zendStudio自带的web环境外,还有一个手工搭建的WAMP环境(这个环境已经可以支持redis扩展了)。于是,我就想,能不能把这个环境借给ZendStudio使用呢。 一开始,很难,因为以前就有这样的想法,一直没有弄清楚zend_debugger,Xdebug和php的关系。还好,今天是周五,反正明天不上班,今天一定要把它弄好。于是,就开始了百度搜索, 首先,是如何配置ZendStudio的debug环境,为了方便说,还是截个图吧 Windows->preference ZendStudio有两种调试方式,WEB的还没有弄明白,就不说了。 使用命令行模式调试,也就是CLI. 点击右边的PHP_Executables 配置两个路径和调试器,如下截图,PHP debugger下拉列表支持degugger和Xdebug。 确定保存就可以了。 另外,你的PHP需要事先安装PHPXdebug扩展,我也是网上搜索了一下,才最终去官网