Local debugging URL mapping |
Guru master
|
The run Target can be the URL that you want to debug, so it can be http://localhost:8080/index.php
Then the URL mapping assists PhpED and DBG with determining which locally accessible file should be opened when debugging. The new project wizard normally gets the mapping correct. For a project with the local computer as the web server: Web document root: D:\Src\Home\Web\webv6\tch_chip4_net\pub Web root URL: http://localhost:8080 Root directory: D:\Src\Home\Web\webv6\tch_chip4_net\pub Then change the project properties and set Default file or URL to http://localhost:8080 (I would normally leave off index.php because Apache loads index.php by default) Because it is a local project with a single directory, no mapping is required. Mapping would be required if the site required PHP files above and outside of the document root. If you are going to be debugging frameworks or using cookies, bear in mind that technically localhost is not a valid domain name and you might find it causes you problems. Some frameworks do not support cookies with localhost. Once you have got your debugging working, you are possibly best to setup local domain names for debugging. You can use the Windows hosts file to do that. Also bear in mind that SRV is not a replacement for a 'proper' web server. SRV is great for debugging some PHP projects, but for real web sites you are possibly better using Apache or maybe IIS if you add PHP support (personally I'd use Apache). |
||||||||||||
|
Local debugging URL mapping |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by