I apologize for my ignorance upfront. I’m fairly new to PHP and am trying to set up a local openemr
environment where I can debug openEMR using PhpStorm and xdebug to learn how it runs. I cloned the openemr/openemr-devops repository locally, modified the Dockerfile to install xdebug, modified the php.ini file with the xdebug directives, created a new image, but get an error at startup - file not found.
Portion of Dockerfile modified - added apk directive to install php7-xdebug
I solved my issue. I just used docker exec to get into the openemr container, followed the xdebug.org wizard recommendations, used docker commit to write out the new image, and now have a openemr container running xdebug. Next step, get it working with PHPStorm.
Did you need to open up port 9000 on the docker-compose.yml? Would be really nice to support this via a docker composer environment setting (so would install everything in real time when start up the docker rather than build it into the Dockerfile) and I plan to make an issue for this.
Hello @Nicholas_Steblay@brady.miller I am greatly interested in this, Many PHP devs I know mention the wonders of PHPStorm especially with remote debugging via xdebug, I have been frustrated with the complexities of setting that up,plus PHPStorm being a little more heavy than my VScode, Would be very happy to see how it works. I already have an activated version of the PHPStorm IDE .
Ya, I was having problems with VS Code. PHPStorm appears to have better capabilities for debugging, especially when using Docker. Julie’s guide looks good for configuring PHPStorm. I used the DBGp proxy on port 9000 and added the IDE key into the php.ini file. I tried doing all the modifications to the docker image using the Dockerfile provided in openemr-devops but wasn’t successful - I’ll try that again. Instead I exec’d into the running flex container and added xdebug as specified by the xdebug.org wizard and wrote out the image using the docker commit command. I’m also using the Xdebug helper extension for Chrome
Brad, I had problems with setting up the flex Dockerfile provided in openemr-devops. I ended up using the docker exec command to start a bash shell in the running flex docker container. I then manually installed xdebug per the recommendations provided by the xdebug.org wizard. It did require a compile using GCC. I then ran the docker commit command to write out the updated image. I tried for hours to get it to work through configuring the Dockerfile but wasn’t successful. I’ll probably try again as some point but am more focused at this time in learning how the PHP code is working for Openemr. If I have time I’ll try again to use the Dockerfile approach.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/localhost/htdocs/openemr": "${workspaceFolder}"
},
"ignore": [
"**/vendor/**/*.php"
]
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Note there is no need to change the XDEBUG_IDE_KEY, since PHPSTORM (and likely anything there) still triggers the callback. So, in the end, this will actually be easier to configure than PHPStorm
Also, after my original post, I realized I needed the ignore line in there to avoid bunch of annoying behavior (which i added above). So, it now pretty much looks almost just like @stephenwaite 's script
Interesting these are the same exact things I have yet when I try to stop at a breakpoint and run the debugger nothing happens
Is there a good page I can use to test I just replaced everything on the login.php page and put a breakpoint on this variable I defined but nothing happens.
Thanks for that I think the settings are wrong based on what I see in the errror logs:
[Sun Feb 21 14:05:48.516109 2021] [php7:notice] [pid 17] [client 172.19.0.1:59308] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:48.519386 2021] [php7:notice] [pid 250] [client 172.19.0.1:59306] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:48.718137 2021] [php7:notice] [pid 17] [client 172.19.0.1:59308] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:48.721150 2021] [php7:notice] [pid 250] [client 172.19.0.1:59306] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:48.920556 2021] [php7:notice] [pid 17] [client 172.19.0.1:59308] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:51.131311 2021] [php7:notice] [pid 17] [client 172.19.0.1:59308] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/messages/messages.php?form_active=1
[Sun Feb 21 14:07:04.752509 2021] [ssl:warn] [pid 36] AH01906: 172.19.0.6:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 21 14:07:04.752519 2021] [ssl:warn] [pid 36] AH01909: 172.19.0.6:443:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.19.0.6. Set the 'ServerName' directive globally to suppress this message
Xdebug: [Config] The setting 'xdebug.profiler_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.profiler_enable_trigger' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_enable_trigger (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.profiler_output_dir' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_output_dir (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_connect_back' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_connect_back (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_log' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_log (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_port' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_port (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
[Sun Feb 21 14:07:04.763706 2021] [ssl:warn] [pid 36] AH01906: 172.19.0.6:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 21 14:07:04.763714 2021] [ssl:warn] [pid 36] AH01909: 172.19.0.6:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 21 14:07:04.765057 2021] [mpm_prefork:notice] [pid 36] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1i configured -- resuming normal operations
[Sun Feb 21 14:07:04.765071 2021] [core:notice] [pid 36] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun Feb 21 14:19:21.231687 2021] [php7:notice] [pid 47] [client 172.19.0.1:59484] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:19:21.231707 2021] [php7:notice] [pid 47] [client 172.19.0.1:59484] PHP Stack trace:
[Sun Feb 21 14:19:21.231711 2021] [php7:notice] [pid 47] [client 172.19.0.1:59484] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:43.250158 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:43.250178 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Stack trace:
[Sun Feb 21 14:21:43.250182 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:45.002453 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:45.002470 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Stack trace:
[Sun Feb 21 14:21:45.002474 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:45.219398 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:45.219414 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Stack trace:
[Sun Feb 21 14:21:45.219418 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:56.839051 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:56.839069 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Stack trace:
[Sun Feb 21 14:21:56.839072 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:57.524428 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:57.524444 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Stack trace:
[Sun Feb 21 14:21:57.524448 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:22:21.372740 2021] [php7:notice] [pid 44] [client 172.19.0.1:59498] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:22:21.372759 2021] [php7:notice] [pid 44] [client 172.19.0.1:59498] PHP Stack trace:
[Sun Feb 21 14:22:21.372763 2021] [php7:notice] [pid 44] [client 172.19.0.1:59498] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:25:09.224623 2021] [php7:notice] [pid 37] [client 172.19.0.1:59508] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 12
[Sun Feb 21 14:25:09.224640 2021] [php7:notice] [pid 37] [client 172.19.0.1:59508] PHP Stack trace:
[Sun Feb 21 14:25:09.224644 2021] [php7:notice] [pid 37] [client 172.19.0.1:59508] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:25:47.893950 2021] [php7:notice] [pid 45] [client 172.19.0.1:59510] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 12
[Sun Feb 21 14:25:47.893967 2021] [php7:notice] [pid 45] [client 172.19.0.1:59510] PHP Stack trace:
[Sun Feb 21 14:25:47.893971 2021] [php7:notice] [pid 45] [client 172.19.0.1:59510] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:26:52.060586 2021] [php7:notice] [pid 46] [client 172.19.0.1:59520] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 12
[Sun Feb 21 14:26:52.060613 2021] [php7:notice] [pid 46] [client 172.19.0.1:59520] PHP Stack trace:
[Sun Feb 21 14:26:52.060619 2021] [php7:notice] [pid 46] [client 172.19.0.1:59520] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
I purposely tried dividing by zero to make it crash but vscode is definitely not working with xdebug.
I think something needs to be changed in xdebug.ini or php.ini will provide more details as I figure it out, thanks.
No more xdebug config errors in the logs but breakpoints are still not working with vscode, going to try exposing port 9000 on the container.
Error log:
[Sun Feb 21 14:05:48.721150 2021] [php7:notice] [pid 250] [client 172.19.0.1:59306] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:48.920556 2021] [php7:notice] [pid 17] [client 172.19.0.1:59308] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/tabs/main.php?token_main=MYTBpRjjcWpfYJJbkmL60E5RNe4RwDyOwsdsFyTZ
[Sun Feb 21 14:05:51.131311 2021] [php7:notice] [pid 17] [client 172.19.0.1:59308] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(, referer: http://localhost:8300/interface/main/messages/messages.php?form_active=1
[Sun Feb 21 14:07:04.752509 2021] [ssl:warn] [pid 36] AH01906: 172.19.0.6:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 21 14:07:04.752519 2021] [ssl:warn] [pid 36] AH01909: 172.19.0.6:443:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.19.0.6. Set the 'ServerName' directive globally to suppress this message
Xdebug: [Config] The setting 'xdebug.profiler_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.profiler_enable_trigger' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_enable_trigger (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.profiler_output_dir' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_output_dir (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_connect_back' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_connect_back (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_log' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_log (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_port' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_port (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
[Sun Feb 21 14:07:04.763706 2021] [ssl:warn] [pid 36] AH01906: 172.19.0.6:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 21 14:07:04.763714 2021] [ssl:warn] [pid 36] AH01909: 172.19.0.6:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 21 14:07:04.765057 2021] [mpm_prefork:notice] [pid 36] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1i configured -- resuming normal operations
[Sun Feb 21 14:07:04.765071 2021] [core:notice] [pid 36] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun Feb 21 14:19:21.231687 2021] [php7:notice] [pid 47] [client 172.19.0.1:59484] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:19:21.231707 2021] [php7:notice] [pid 47] [client 172.19.0.1:59484] PHP Stack trace:
[Sun Feb 21 14:19:21.231711 2021] [php7:notice] [pid 47] [client 172.19.0.1:59484] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:43.250158 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:43.250178 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Stack trace:
[Sun Feb 21 14:21:43.250182 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:45.002453 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:45.002470 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Stack trace:
[Sun Feb 21 14:21:45.002474 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:45.219398 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:45.219414 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP Stack trace:
[Sun Feb 21 14:21:45.219418 2021] [php7:notice] [pid 40] [client 172.19.0.1:59492] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:56.839051 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:56.839069 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Stack trace:
[Sun Feb 21 14:21:56.839072 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:21:57.524428 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:21:57.524444 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP Stack trace:
[Sun Feb 21 14:21:57.524448 2021] [php7:notice] [pid 42] [client 172.19.0.1:59494] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:22:21.372740 2021] [php7:notice] [pid 44] [client 172.19.0.1:59498] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 11
[Sun Feb 21 14:22:21.372759 2021] [php7:notice] [pid 44] [client 172.19.0.1:59498] PHP Stack trace:
[Sun Feb 21 14:22:21.372763 2021] [php7:notice] [pid 44] [client 172.19.0.1:59498] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:25:09.224623 2021] [php7:notice] [pid 37] [client 172.19.0.1:59508] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 12
[Sun Feb 21 14:25:09.224640 2021] [php7:notice] [pid 37] [client 172.19.0.1:59508] PHP Stack trace:
[Sun Feb 21 14:25:09.224644 2021] [php7:notice] [pid 37] [client 172.19.0.1:59508] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:25:47.893950 2021] [php7:notice] [pid 45] [client 172.19.0.1:59510] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 12
[Sun Feb 21 14:25:47.893967 2021] [php7:notice] [pid 45] [client 172.19.0.1:59510] PHP Stack trace:
[Sun Feb 21 14:25:47.893971 2021] [php7:notice] [pid 45] [client 172.19.0.1:59510] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:26:52.060586 2021] [php7:notice] [pid 46] [client 172.19.0.1:59520] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 12
[Sun Feb 21 14:26:52.060613 2021] [php7:notice] [pid 46] [client 172.19.0.1:59520] PHP Stack trace:
[Sun Feb 21 14:26:52.060619 2021] [php7:notice] [pid 46] [client 172.19.0.1:59520] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
[Sun Feb 21 14:54:35.682383 2021] [php7:notice] [pid 42] [client 172.19.0.1:59790] PHP Warning: Division by zero in /var/www/localhost/htdocs/openemr/interface/login/login.php on line 14
[Sun Feb 21 14:54:35.682400 2021] [php7:notice] [pid 42] [client 172.19.0.1:59790] PHP Stack trace:
[Sun Feb 21 14:54:35.682403 2021] [php7:notice] [pid 42] [client 172.19.0.1:59790] PHP 1. {main}() /var/www/localhost/htdocs/openemr/interface/login/login.php:0
Ok I got it to work but the docker image needs to be updated in order for it to work, so if you docker-compose down you will have to edit the xdebug.ini again.
@brady.miller I tried passing these values as environment variables in the docker-compose.yml file but it doesn’t work, it would be nice to enable this via env vars that way there’s no need to edit the xedebug.ini but I will let you decide what is best. This needs to be fixed and documented so we can get people onboard to checkout the repo and start coding without any issues.