xdebug

Xdebug post requests with PhpStorm

醉酒当歌 提交于 2021-02-20 19:08:19
问题 I am using PphpStorm 2016.1. The php engine is php 7.0.4 and xdebug version is 2.4.0. I am using ubuntu 16.04 as well. The problem is that I can debug every request. But when I want to debug post request, $_POST global variable is getting empty variable. With debug mode posting a form is working but when enabling debug with PhpStorm I can't see $_POST variable's data. I did everything but but I did not find the solution. 回答1: docs: If you want to debug a script started through a web browser,

How do i extend my Xdebug “session time”?

跟風遠走 提交于 2021-02-11 13:32:57
问题 I'm using xdebug to debug some code for my company. Sometimes I'm debugging something and the debugging time expires and i need to restart the whole process of debugging. I have tried putting xdebug.remote_cookie_expire_time = 36000 in the php.ini file to extend the session to 10 hours but i don't think this is helping. I think i should mention that I'm trying to debug on chrome. 回答1: connection 1: read ECONNRESET The above tells that connection was terminated by a web server/proxy but not

VSCode - XDebug connected to client but break points does not work

只愿长相守 提交于 2021-02-11 13:22:58
问题 I work on PHP application and I want to debug my website. I'm working on IDE VSCode on Windows 10. I use Docker to launch my website in WSL2. I have configured XDebug in my php-fpm:7.3 container. root@00376c075cd3:/var/www# php -version PHP 7.3.18 (cli) (built: May 15 2020 13:33:15) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans On VSCode, I have configured my launch

VSCode - XDebug connected to client but break points does not work

心不动则不痛 提交于 2021-02-11 13:22:50
问题 I work on PHP application and I want to debug my website. I'm working on IDE VSCode on Windows 10. I use Docker to launch my website in WSL2. I have configured XDebug in my php-fpm:7.3 container. root@00376c075cd3:/var/www# php -version PHP 7.3.18 (cli) (built: May 15 2020 13:33:15) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans On VSCode, I have configured my launch

Xdebug v3.0.2 with PHP v8.0.0

我怕爱的太早我们不能终老 提交于 2021-02-10 14:44:58
问题 I just have migrated to php v8.0.0 with XAMPP v3.2.4. But Xdebug is not working. Execution is not stopping on breakpoints. My installation instructions- Download php_xdebug-3.0.2-8.0-vs16-x86_64.dll Move the downloaded file to \xampp\php\ext Update D:\xampp\php\php.ini and change the line zend_extension = \xampp\php\ext\php_xdebug-3.0.2-8.0-vs16-x86_64.dll Restart the webserver Here is the installation summary- Xdebug installed: 3.0.2 Server API: Apache 2.0 Handler Windows: yes Compiler: MS

How to configure Xdebug for JetBrains PhpStorm 2020.1?

时光总嘲笑我的痴心妄想 提交于 2021-02-10 14:16:32
问题 So, I was quite happily debugging my PHP code with PhpStorm - until Windows became severely corrupted ... and my backup regime turned out to not quite as good as I had thought (let that be a lesson to many of us :-( ) Here's the relevant part of my php.ini : [PHP] [Xdebug] ; ---- trying to follow PHP storm's advice zend_extension = "e:\coding\Web_development\php\php\ext\php_xdebug-3.0.1-7.3-vc15-x86_64.dll" xdebug.remote_enable = 1 xdebug.remote_handler = dbgp xdebug.remote_host = 127.0.0.1

Springboot 热部署的两种方式

流过昼夜 提交于 2021-02-09 19:03:11
https://yiqiwuliao.com/post/spring/springbootre-bu-shu#toc_3 记得修改下面参数 1. build project auto..... 2. shift + alt + ctrl + / -> regis.... 3. 使用下面命令debug运行 mvn spring-boot:run -Drun.jvmArguments= " -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 " run -> Edit Configura.... -> remote 拓展:基于Tomcat的远程debug vim bin/catalina.sh 在第一行添加 CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899" 使用IDEA 创建一个remote 填写ip和端口链接即可进行远程debug 来源: oschina 链接: https://my.oschina.net/u/4315677/blog/3787656

Xdebug runs for all cli commands despite remote_autostart being disabled

让人想犯罪 __ 提交于 2021-02-07 17:54:27
问题 Without completely disabling Xdebug from the php.ini I'm currently unable to stop Xdebug from running for all cli commands. Previously I would toggle remote_autostart to enable if I needed to debug through cli. My problem is in particular causing issues with composer, effectively making it unrunnable. Composer claim that composer should restart without Xdebug running if they see it is running, this is supposedly fixed from composer version 1.3 forward, but I'm using composer 1.7.3. This is

PHPStorm / debugger not stopping at certain breakpoints

南笙酒味 提交于 2021-02-07 13:28:58
问题 I've set up XDebug (2.2.1) and PHPStorm-IDE (Mac OS X 10.7.5) with standard LAMP stack for Mac OS (Apache 2.2.22, PHP 5.3.15). /etc/php.ini [xdebug] zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so xdebug.file_link_format="txmt://open?url=file://%f&line=%1" xdebug.remote_enable = On xdebug.remote_autostart = "PHPSTORM" xdebug.var_display_max_data = 1024 xdebug.dump.GET=* xdebug.dump.POST=* xdebug.show_local_vars=On xdebug.dump.SERVER=* xdebug.dump_globals=On xdebug

Unable to configure Notepad++ DBGP plugin. Xdebug already installed

时间秒杀一切 提交于 2021-02-07 11:27:35
问题 I have installed xdebug on PHP but now I can't make the notepad++ DBGp plugin work. I have latest wamp version on Win7 and the wwww folder is on partition: d:\www . I have coded a test file test.php : <?php $test = "3"; echo $test; ?> And I have tried opening it in web browser using this link : http://localhost/test.php?XDEBUG_SESSION_START=test But the DBGp won't connect. I tried with and without IDE_Key . I have gone through the documentation many times but was unable to find/solve the