I found the solution here - Internal server on Xdebug breakpoint
It is solved. It was an Apache problem. Apache times out by default after 40 seconds on a breakpoint. I added FcgidIOTimeout 600 to site.conf.hbs withing the <ifModule…> section to increase this to 10 minutes.