Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marjanristicevic's avatar

Netbeans xdebug docker path mapping

I'm on windows 8.1 using laradock as submodule in laravel 5.1 project,all default folder structure. Reloading site is triggering xdebug inside docker vm, execution is paused, but I suspect Netbeans breakpoint line isn't sent accurate due to path mapping so keeps waiting for connection for ever.

Here are the paths: Windows:

Docker:

Basically i need advice about paths mapping, it's a bit unclear to me, as you set breakpoint in routes.php on "/" route that doesn't reflect real folder structure, but /public/index.php does not either... on local environment breakpoints work normal without any mapping. Also maybe xdebug expect some param passed as environment variable, but my main concern is path mapping.

0 likes
1 reply
marjanristicevic's avatar

Solved it, it's path to index.php files, /var/www/laravel/public to c:\users\username\desktop\zemke2\public .Xdebug should print info about paths in log to make debugging mapping easier for virtual paths.

Please or to participate in this conversation.