Tag: netbeans

Xdebug Netbeans Php Docker

我通过浏览器通过http://dev.app/?XDEBUG_SESSION_START=netbeans-xdebug开始,最好我可以得到页面搁置,执行停止,但Netbeans不停止在断点,但不断等待连接。 那是当我在127.0.0.1:10000 Netbeans设置代理。 它使更多的逻辑放在docker机192.168.99.100的IP,但随后页面刚刚加载,没有停止(赢家8.1的docker工具包)。 另外,当我在Netbeans中离开代理时,什么都不会停止。 当某个东西在10000上执行时,执行被暂停,而我放置了断点,但Netbeans正在等待连接。 Xdebug被安装并列在php -v和php -m 。我没有公开端口10000。 debugging器端口,项目URL和会话ID在Netbeans中设置。 Xdebug 文档说,当你设置xdebug.remote_connect_back=1你不需要指定远程主机。 我使用这个容器使用的xdebug.ini zend_extension=xdebug.so xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp ; port 9000 is used by php-fpm xdebug.remote_port=10000 xdebug.remote_autostart=0 ; no need for remote host xdebug.remote_connect_back=1 xdebug.idekey="netbeans-xdebug" docker-compose.yml php-fpm: build: context: ./php-fpm dockerfile: Dockerfile-70 volumes_from: – application expose: – "9000" – "10000" ports: – "10000:10000" links: – […]

Docker java.lang.RuntimeException当试图build立错误

我是Docker的新手,并试图将其用于Mac上的Netbeans项目之一。 我的docker文件在下面。 FROM ubuntu:latest MAINTAINER "Joe" <joe@fakewebsitefornow.com> # Install apache, PHP, and supplimentary programs. openssh-server, curl, and lynx-cur are for debugging the container. RUN apt-get update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get -y install \ apache2 php7.0 php7.0-mysql libapache2-mod-php7.0 curl lynx-cur # Enable apache mods. RUN a2enmod php7.0 RUN a2enmod rewrite # Update the […]

Xdebug忽略Netbeans中的Docker容器内创build的Php项目的断点

当我debugging不在Docker容器内创build的项目时,Xdebug没有问题。 但是,当我debugging在Docker容器内创build的项目时,Xdebug不会在断点上停止 – 尽pipe它正在运行并停在xdebug_break()上。 我的Docker主机是Ubuntu 14.04。 它被安装为VirtualBox。 它使用PHP 5.5.9-1ubuntu4.16和Xdebug v2.2.3。 我有一个已安装的卷(在Docker主机和Docker容器之间),其中存储了在Docker容器内创build的项目。 Ubuntu 14.0.4中的Docker容器基于CentOS 6.7(Final)。 它使用PHP 5.3.29和Xdebug v2.1.4,它的Xdebugconfiguration如下(在/etc/php.d/xdebug.ini中): zend_extension=/usr/lib64/php/modules/xdebug.so ;xdebug.remote_autostart = 0 xdebug.remote_autostart = 1 xdebug.remote_connect_back = 1 xdebug.remote_enable = 1 ;xdebug.remote_host = 127.0.0.1 ;xdebug.remote_host = localhost ;xdebug.remote_host = 172.17.42.1 ;xdebug.remote_host = 10.0.2.15 ;xdebug.remote_host = 10.0.2.2 ;xdebug.remote_port = 9001 xdebug.remote_port = 9000 xdebug.remote_handler = dbgp xdebug.profiler_enable_trigger […]