Remote debugging path mapping

I want to be able to use debugger inside docker container and i managed to map entry point of laravel‘s /public/index.php to path on nginx server inside container, breakpoint in index.php is being hit, but breakpoint in default route “/” in app/http/routes.php is not, although route’s code is being executed. It’s laravel 5.1 default folder structure.

Working path mapping for index.php is /var/www/laravel/public - C:\Users\username\Desktop\zemke2\public (server path – project path respectively)

  • Unable to download any image in Windows16 docker
  • docker-compose up is starting the container and immediately stopping them
  • Docker containers performance difference between OSX and Linux
  • DOCKER_TLS_VERIFY, DOCKER_HOST, and DOCKER_CERT_PATH on Ubuntu
  • Docker run command from git repo?
  • Docker volume created with nfs server is not reflecting the data from nfs server
  • Printscreen here:

    printscreen http://image.prntscr.com/image/28dfa2791dd746a1bfc61971427fa379.png

    I need help making mapping for “/” route’s breakpoints to work.

  • Exposed port shows as filtered when using nmap
  • Dockerfile expose port for node.js image
  • Unable to use AWS Elastic Beanstalk with Docker to deploy Wordpress
  • Why such an overhead for system with docker containers usage?
  • Bash parse docker status to check if local image is up to date
  • Docker-machine - set configuration as default
  • One Solution collect form web for “Remote debugging path mapping”

    After some wondering I succeeded to figure it out. It is quite simple. The point is you map FOLDERS and you map ABSOLUTE FILESYSTEM PATHS on server and local. Browser url is IRRELEVANT, it does not matter how you run your code.

    Folder containing file (or files) you want to debug on server to local folder containing that file.

    In my case those are:

        server path: /var/www/laravel/public - local path: C:\Users\username\Desktop\zemke2\public
        server path: /var/www/laravel/app/Http - local path: C:\Users\username\Desktop\zemke2\app\Http
    

    Linux paths are case sensitive. Checking stop debugger on first line also helps debugging problems like this.

    Netbeans settings.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.