Skip to content

Commit a465a87

Browse files
committed
Use xDebug 3 beta
1 parent 705fe6b commit a465a87

4 files changed

Lines changed: 20 additions & 10 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ RUN apk --update upgrade \
1717
RUN pickle install apcu-5.1.19
1818

1919
ADD etc/infrastructure/php/extensions/amqp.sh /root/install-amqp.sh
20+
ADD etc/infrastructure/php/extensions/xdebug.sh /root/install-xdebug.sh
2021
RUN apk add git
2122
RUN sh /root/install-amqp.sh
23+
RUN sh /root/install-xdebug.sh
2224

2325
RUN docker-php-ext-enable \
2426
amqp \
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
zend_extension = xdebug.so
22

33
;Debugging
4-
xdebug.remote_enable = 1;
5-
xdebug.remote_connect_back = 1;
6-
xdebug.remote_autostart = 1;
7-
xdebug.remote_port = 9001;
8-
xdebug.remote_host = host.docker.internal
4+
xdebug.mode=debug
5+
xdebug.start_with_request = yes
6+
xdebug.discover_client_host = yes
7+
xdebug.client_port = 9001
8+
xdebug.client_host = host.docker.internal
99

1010
;Profiling
11-
xdebug.profiler_enable = 0;
12-
xdebug.profiler_enable_trigger = 1;
13-
xdebug.profiler_output_dir = "/tmp/xdebug";
11+
xdebug.mode=profile
12+
xdebug.start_with_request=trigger
1413

15-
xdebug.max_nesting_level = 500;
14+
xdebug.output_dir = "/tmp/xdebug"
15+
xdebug.max_nesting_level = 500

etc/infrastructure/php/extensions/amqp.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
git clone https://github.com/php-amqp/php-amqp.git
1+
git clone -n https://github.com/php-amqp/php-amqp.git
22
cd php-amqp
3+
git checkout 96cd5cb5eddd3db2faaa3643dad2fe4677d7c438
34
phpize
45
./configure
56
make
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
git clone -n https://github.com/xdebug/xdebug.git
2+
cd xdebug
3+
git checkout 592ab9fa10cfa132623489511e92ef69fb91744c
4+
phpize
5+
./configure
6+
make
7+
make install

0 commit comments

Comments
 (0)