xdebug

springboot项目编译、运行优化等相关操作

你离开我真会死。 提交于 2019-11-29 00:43:33
(1)编译打包、执行springboot项目 本地:mvn clean package -U --settings D:\devsoft\apache-maven-3.5.3\conf\hubs1settings.xml -Dmaven.test.skip=true -Pdev 服务器:mvn clean package -U -Dmaven.test.skip=true -Ptest (2)运行springboot项目 java -jar xxx.jar //pinpoint-agent监控的方式启动springboot项目 nohup java -Xms6144m -Xmx6144m -XX:PermSize=1024m -XX:MaxPermSize=1024m -javaagent:/home/xpp/apm/pinpoint-agent/pinpoint-bootstrap.jar -Dpinpoint.agentId=PP_123.16.xx.115 -Dpinpoint.applicationName=crs_bb_bb-xxx-data -jar xxx.jar (3)SpringBoot开启远程debug与远程监控 a.开启远程debug nohup java -Xdebug -Xrunjdwp:server=y,transport=dt_socket

How can I use xdebug to debug only one virtual host?

天大地大妈咪最大 提交于 2019-11-28 23:56:00
I have installed xdebug, I can see in phpinfo() that it's installed (but it's OFF). However, I don't want to enable it for the whole server/apache2, I just want to enable it for one virtual host. How can I do this? You can set xdebug in php.ini with off value: zend_extension=/usr/lib/php/modules/xdebug.so xdebug.remote_enable off xdebug.remote_port 9000 xdebug.idekey PHP-XDEBUG and turn on only .htaccess with directive: php_flag xdebug.remote_enable on 来源: https://stackoverflow.com/questions/15423705/how-can-i-use-xdebug-to-debug-only-one-virtual-host

phpStorm配置xdebug远程调试

 ̄綄美尐妖づ 提交于 2019-11-28 23:14:25
安装xdebug 下载xdebug 可到 xdebug官网 下载与自己PHP版本对应的xdebug扩展 安装 [root] # cd /usr/local/src [root] # tar zxvf xdebug-2.6.0RC2.tgz [root] # cd xdebug-2.6.0RC2 [root] # /usr/local/php/bin/phpize [root] # ./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php-config [root] # make && make install 配置xdebug 修改php.ini配置文件,在文件中追加以下内容 zend_extension=xdebug.so //指定Xdebug扩展文件的路径 xdebug.remote_enable=1 //是否开启远程调试 xdebug.remote_handler=dbgp //指定远程调试的处理协议 xdebug.remote_mode=req //可以设为req或jit,req表示脚本一开始运行就连接远程客户端,jit表示脚本出错时才连接远程客户端。 xdebug.remote_host=192.168.1.98 //指定远程调试的主机名(安装phpstorm的主机ip) xdebug

Installing xdebug with PHP 5.5

假装没事ソ 提交于 2019-11-28 22:28:44
问题 I've read quite a lot answers but couldn't figure out why xdebug doesn't work. php.ini: [xdebug] zend_extension="/usr/lib/php5/20090626/xdebug.so" php -v: PHP 5.5.6-1+debphp.org~precise+2 (cli) (built: Nov 21 2013 14:31:41) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies /usr/lib/php5/20090626/xdebug.so does exist. No zend optimizer in php.ini. Also if I try to

How to easily Debug Layout Xml Warning/Error?

时间秒杀一切 提交于 2019-11-28 21:41:57
问题 I got stuck on this error: Warning: simplexml_load_string(): Entity: line 46: parser error : Comment not terminated in */lib/Varien/Simplexml/Config.php on line 510 and Entity: line 46: parser error : Start tag expected, '<' not found in */lib/Varien/Simplexml/Config.php on line 510 It is clear that there is an issue in some Xml file, but really not easy for me to find out the needle in the big haystack :) Any good practice for that? If possible I would like to find a good practice that

php xdebug: How to profile forked process

点点圈 提交于 2019-11-28 21:33:30
I am running a PHP daemon to be profiled. The started php process loads all required data, forks itself to distribute workload over all cores, waits for the forked children to finish, and collects the results generated by the children. Since I am sharing CLI environment with other users, I need to start xdebug profiling by injecting php.ini values into the shell call. $ php -d xdebug.profiler_enable=1 -d xdebug.profiler_output_dir="/home/xxx" daemon.php The generated cachegrind-file, how ever, profiles the parent and hence shows 90% sleep. Is there a way to profile the workers without building

So eclipse and xdebug walk into a bar, and then my apache server dies

被刻印的时光 ゝ 提交于 2019-11-28 20:50:52
问题 I am using windows xp x86, wamp, apache2, php 5.3 x86, eclipse php, and xdebug, running on localhost as both a virtualhost and an https virtualhost eclipse version info Eclipse for PHP Developers Version: Helios Release Build id: 20100617-1415 I had successfully managed, somehow, to setup eclipse and xdebug and all was well. Then I had to make an svn branch of my project, and reconfigure apache with 2 new virtual hosts, and update my windows host files. Now when I launch debug mode in eclipse

How to stop xdebug from stopping on first line with PhpStorm?

旧街凉风 提交于 2019-11-28 20:46:24
问题 I'm having this weird problem. All my settings used to work OK, until I updated my version of PHP. I use macports and have the php5 and php5-xdebug ports installed. xdebug is working, but it is stopping on the first line of my script even though I have the option disabled in PhpStorm. There is no breakpoint there, and breakpoints in other parts of the code are working OK. If it helps, here is the xdebug portion of phpinfo (in two parts); https://dzwonsemrish7.cloudfront.net/items

mac php nginx mysql 环境搭建及eclipse/phpstorm xdebug

与世无争的帅哥 提交于 2019-11-28 20:27:10
由于以前使用的都是windows对于新买的Mac系统异常不熟悉,所以安装环境碰到了许多小问题,这里做些总结。希望可以对以后安装的朋友有点用处。 首先是搭建PHP 环境,这里我使用了下面这个博客,讲的比较详细 全新安装Mac OSX 开发者环境 同时使用homebrew搭建 PHP,Nginx ,MySQL,Redis,Memcache ... ... (LNMP开发环境) http://segmentfault.com/a/1190000000606752 但是还是碰到一些小问题; 因为我想安装PHP56 所以讲其中55的地方都需要改掉。(这点应该都很容易理解 ^_^) 然后安装了 zsh ,那么你的shell 就已经变成zsh了。这时请注意 博文中替换的环境变量是这样的 echo 'export PATH="$(brew --prefix php55)/bin:$PATH"' >> ~/.bash_profile #for php echo 'export PATH="$(brew --prefix php55)/sbin:$PATH"' >> ~/.bash_profile #for php-fpm echo 'export PATH="/usr/local/bin:/usr/local/sbib:$PATH"' >> ~/.bash_profile #for other

debugging laravel artisan from PHPStorm with homestead

蹲街弑〆低调 提交于 2019-11-28 19:40:01
I setup Laravel Homestead. I then configured both homestead xdebug.ini and PHPStorm to make the debugging work. Here is my xdebug.ini inside homestead zend_extension=xdebug.so xdebug.remote_autostart = on xdebug.remote_enable = on xdebug.remote_connect_back = on xdebug.remote_port = 9000 xdebug.idekey = "vagrant" To start a debugging session the steps I follow are In PHPStorm --> Start Listening for connections In PHPStorm set a breakpoint In my browser --> Use XDebug Chrome Helper OR add to my URL ?XDEBUG_SESSION_START= Load the page This works perfectly. My problem is when I'm inside