For example, if you resolved the issue using the above steps for a Wi-Fi network and later you connected to another Wi-Fi network, you would see the issue again. Note: If you connect to a different internet network then you might see the issue again. Also, the curl or ping should work as expected inside the container. Set-NetIPInterface -InterfaceAlias 'Wi-Fi' -InterfaceMetric 3 Table of Contents Prerequisites General Gather Host IP address Assumption Configuration Install vscode-php-debug for VSCode Configure VSCode Configure php.ini Restart the Devilbox 3.2.3.4.1. If you are also using Wi-FI and the InterfaceMetric is not the least value when compared to other networks, then update it to some minimum value using the following command. Docker on Windows: Xdebug for Visual Studio Code Docker for Windows requires a well known IP address in order to connect to the host operating system. Here in my case I am using Wi-Fi, hence I set a least InterfaceMetric value to Wi-Fi. Make sure your primary internet-connected network adapter has a least InterfaceMetric value. Run the following command to get the network adapter details and their priorities Get-NetIPInterface -AddressFamily IPv4 | Sort-Object -Property InterfaceMetric -Descending If it is not resolving the, it means the container is not able to connect to internet to download a debugger. the xdebug.ini file in this gist) Setup VS Code PHP Debug is the extension to debug PHP in VS Code. In the command run the following command and see if it is resolving. Install and configure xdebug in Docker Install xdebug according to the Docker image you're using RUN pecl install xdebug COPY xdebug.ini PHPINIDIR/conf.d/ (cf. To understand more, connect to the container which you want to debug through Visual Studio code and attach shell. However I have faced the following error even after following the same steps. Here is the Siteore documentation on how to debug a Sitecore application/code running inside docker containers. You might face this error while trying to debug code running in docker container of your Sitecore instance using Visual Studio
0 Comments
Leave a Reply. |