How to setup Xdebug in docker, and setup configuration in PhpStorm - docker

I have set up Xdebug in docker, step debugging is enabled but I want to start developer helper and Tracing in Xdebug. Can you please help me how to set up the configuration in PhpStorm after setting up Xdebug.

Related

Azure IoT Edge EFLOW behind proxy

PC on which I have installed IoT Edge EFLOW is behind proxy.
I have tried to setup proxy as I did for standardalone Ubuntu instance i.a. by setting proxy for ubuntu (export https_proxy="...") and then setting proxy for docker.
Unfortunately I have noticed proxy settings are removed after each time host system has been restarted.
Futhermore I cannot modify docker configuration file via powershell and SSH connection.
When I try to open any file via nano or vim the powershell window is empty I cannot type anything, I can only exit by closing powershell window.
Is there any particular steps to do to start using EFLOW behind proxy?
Make sure you follow this: Configure deployment manifests "Once your IoT Edge device is configured to work with your proxy server, you need to continue to declare the HTTPS_PROXY environment variable in future deployment manifests."
As part of our remote automation scripts, we've added the EFLOW Autodeploy scripts that will let you deploy the EFLOW VM and all the configurations (including Proxy) just by declaring a JSON file.
Thanks,
Francisco

Docker linux Xdebug only works though remote_connect_back

I am working on setting up Docker + PhpStorm + Xdebug
If I enable remote_connect_back, PHP (Xdebug) is able to connect back to PhpStorm for visits through a web browsers.
However for executing scripts on the server, I'd like to be able to connect through the remote_host instead.
This is my xdebug.ini file:
xdebug.cli_color=0
xdebug.idekey=testide
xdebug.profiler_enable=0
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.remote_log_level=10
xdebug.remote_handler=dbgp
xdebug.remote_host=172.23.0.1
xdebug.remote_mode=req
xdebug.remote_port=8000
xdebug.remote_log=/var/log/xdebug.log
From inside of the container I am able to see 172.23.0.1:8000, however the path mappings doesn't work when using remote_host, only when using remote_connect_back.
Any tips or help is appreciated.

Docker Desktop for Windows configure to use Proxy Auto-Config Script (PAC)

I am using windows 10 Enterprise Version 1607,
We use a Proxy Auto Config (PAC) script for Proxy config.
The problem is docker connectivity. I have Docker 17.12.0-ce (stable release) is installed. I'm not able to configure Docker to use PAC to pull docker registry images.
Kindly help! I've gone through the official documentation several times, but nothing helpful. I'm not sure if I'm missing something.
.pac configuration file is actually returning a proxy server address based on which url you are visiting.
So you can skip using .pac and set your HTTP PROXY directly to docker.
If you want to know what is your proxy server address, visit the .pac from your browser, read it and you will find the proxy server address in clear text there.

Configure xdegub on phpstorm for Zend Framework

I have been trying to configure PHPStorm 8.0 with xdebug to debug a project running on zendframework2.
So far, the PHPStorm and xdebug seem to be ok.
After setting a breakpoint on /application/public/index.php and after enabling the debugger on the browser through the bookmarklets, I set the phpstorm to "listen" to incomming debugging connections but so far nothing has been triggered on the phpstorm as it is supposed to happen.
I followed the guides provided on:
phpstorm-xdebug-setup
but none of them provide information related to zendframework or any other framework.
Anyone who debugs zf2 projects with phpstorm+xdebug can help me with the right configurations on phpstorm?

Open Port during installation using Inno Setup

How can I Open and set a port in the windows firewall from an innosetup installation ?
I Like to avoid doing it manually.
if its relevant, its PORT:2508
and should be "TCP"
Thanks

Resources