## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
Dmitrij Rebrov
@Aliaric
xdebug.remote_enable=on
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_host = docker.for.mac.localhost
xdebug.remote_handler=dbgp
; xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_autostart = on
xdebug.idekey=VSCODE
xdebug.var_display_max_children = -1
xdebug.var_display_max_data = -1
xdebug.var_display_max_depth = -1
I dunno whato to do. It just does not connect
no reaction
Dmitrij Rebrov
@Aliaric
xdebul log:
[6] Log opened at 2019-09-08 13:04:57
[6] I: Checking remote connect back address.
[6] I: Remote address found, connecting to 172.28.0.1:9000.
[6] W: Creating socket for '172.28.0.1:9000', poll success, but error: Operation now in progress (29).
[6] E: Could not connect to client. :-(
[6] Log closed at 2019-09-08 13:04:57
Solution is:
Dmitrij Rebrov
@Aliaric
xdebug.remote_connect_back=0
gopal-et
@gopal-et
Hi, I am new to whole php debug and these tool , I am trying to implement xdebug on laradock using this tutorial
Can some one suggest what should be the path mappings for a laravel project
is it till path/laravel-project or path/laravel-project/public
BjarneFred
@BjarneFred
Does anyone have any experience using this with laragon? I can't get xdebug to work and I think it is something to do with the pathMappings.
kenziehong
@kenziehong
Hi, I'm building a cli application phalcon. And I'd like to use the php debug
How can I setting?
or any idea to debug a cli application? Thanks for your advances
kenziehong
@kenziehong
I dont know how to config like the instruction above
kenziehong
@kenziehong
my debug can not break when I tried to F5
Any reason for that?
Patrick Fiset
@trogne
Hello ! I'm confuse here : "Please also note that setting any of the CLI debugging options will not work with remote host debugging, because the script is always launched locally. If you want to debug a CLI script on a remote host, you need to launch it manually from the command line." . How can I debug a CLI script on a remote host, if I run the CLI command locally ? You mean running "php... file.php" and specifying the remote host, and adding the config so that vscode can do the path mapping ?
Patrick Fiset
@trogne
On the remote machine, I can run "php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remo
te_port=9000 -dxdebug.remote_host=192.168.0.4 -dxdebug.remote_connect_back=0 script.php" , and on my host VScode, it stops at breakpoint ! It is what you meant ?
kenziehong
@kenziehong
Thanks Patric Fiset. Maybe I've kept the port setting was 9000 (default when I open lauch.json with php option) causing the misunderstanding. I'd like to ask how I can debug a CLI script without remote host?
When I hit F5, my debugger can not break
I'd like to debug line by line when I run a CLI script php.
Patrick Fiset
@trogne
@kenziehong My post was for @felixfbecker . For your problem, maybe vscode cannot find the php executable. Look for "php.exe" on your system, and add this to your "Launch currently open script" : "runtimeExecutable": "C:\\path\\to\\php.exe" (double backslashes, assuming you're on Windows)
Lewis Cowles
@Lewiscowles1986
Is there a way to have a debug breakpoint on an empty line capture?
Also is there a way to step up and down frames, like in pdb?
proid
@proidit
hello somebody have tutorial link for use xdebug with remote ssh extension? i can debug normally without remote shh... with remote ssh mode not working
Kipras
@KiprasT
Hello, i have xdebug enabled on php 7.3 (appears in the phpinfo() section as a zend module), I have the PHP Debug extension installed on VSCode, yet when i try to add a new configuration PHP Debug config does not appear, and if I try to add it manually it does not work. Any suggestions?
Ryein Goddard
@Goddard
phpstorm connects no problem but i cant get vscode to connect
Ryein Goddard
@Goddard
i can telnet to the vm running
on port 9000
it just will not connect
in vscode
any ideas?
if i leave the hostname blank it looks like it connects
but when setting breakpoints it never stops
Ryein Goddard
@Goddard
damn i hate windows
Ari Mourao
@arimourao
Use phpstorm then
Ryein Goddard
@Goddard
got it working, but the breakpoints only work on certain things
doesn't work on multi-line variable assignment and function declarations
is that normal?
Ari Mourao
@arimourao
no
Ryein Goddard
@Goddard
i switch to ubuntu here and I have a pretty standard install
watched the debug console and it looks like the breakpoints are getting a success response
so not sure what my issue is
Kyle Logue
@kylelogue
So I got everything installed and running as per the guide, but my breakpoints aren't triggering anything. Any ideas?
艾瑞克
@ericzzhou
我使用了 vscode 的 remote ssh 连接到我的的centos , 谁能指导我怎么发起 php 的debug