Subdomain Xdebug PHPstorm

21 hours ago 1
ARTICLE AD BOX

I have 2 subdomains on the same server and use PHPStorm and Laravel.

One subdomain (referred to as Y) stops at breakpoint, the other (referred to as N) does not.

To troubleshoot I have set PHPStorm Settings > PHP > Debug > 'break at first line in php scripts'.

I am connecting using putty with ssh and tunneling. This should not be an issue as its the same connection to the same server where one subdomain stops at breakpoint and the other does not.

I think therefore the server xdebug config should not be in question because it works for Y but not for N.

With deployment settings each subdomain shares the same ssh configuration to upload files.

Domain N proves to have deployment correct as when setting this in index.php

<?php use Illuminate\Http\Request; die('Test'); define('LARAVEL_START', microtime(true)); // Determine if the application is in maintenance mode... if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) { require $maintenance; } // Register the Composer autoloader... require __DIR__ . '/../vendor/autoload.php'; // Bootstrap Laravel and handle the request... (require_once __DIR__ . '/../bootstrap/app.php') ->handleRequest(Request::capture());

the output is simply "test" in the browser for domain N

This is the same with domain Y.

However coming to debug code stopping in PHPStorm .... Domain Y code stops at the breakpoint for line

die('Test');

but domain N does not stop at the breakpoint.

I thought this would be under PHPStorm Settings > PHP > Debug > Servers and Mappings would be at fault, but have check this precisely for the local machine and the remote server.

Read Entire Article