Question: I'm having a trouble setting up PHP debugging in Eclipse with a non standard URL.

The URL for my application must be <http://xxx/index.php>. That's something I cannot easily change.

I'm constantly failing in setting up the debug configuration to call this URL. This is what I've set up:

![enter image description here](https://i.stack.imgur.com/TvWVR.png)
![enter image description here](https://i.stack.imgur.com/jTS5a.png)

The URL I'm getting is <http://xxxx/xxxx/index.php>?. This has one xxxx too much. How can I get rid of this?

Answer: 
In the file field, you wrote `/xxxx/index.php`, change that to `/index.php`
You can modify the org.eclipse.php.server.ui plugin to get it the way you want. 

Use the Plugin devlopment perspective of Eclipse to modify the plugin. The dialogs are available in 

* /org.eclipse.php.server.ui/src/org/eclipse/php/internal/server/ui/launching/PHPWebPageLaunchShortcut.java (in function contractURL)
* /org.eclipse.php.server.ui/src/org/eclipse/php/internal/server/ui/ServerLaunchConfigurationTab.java (in function formatFileName)

[![Animation showing Java files that need to be modified in the PDT plugin JAR](https://i.stack.imgur.com/GrIPO.gif)](https://i.stack.imgur.com/GrIPO.gif)
<https://vsubhash.wordpress.com/2013/01/26/fix-for-url-auto-generate-bug-in-eclipse-php-pdt-plugin/>