質問編集履歴

3

xdebugの設定を追記しました

2018/08/30 01:19

投稿

hilhilyzyan
hilhilyzyan

スコア19

test CHANGED
File without changes
test CHANGED
@@ -175,3 +175,157 @@
175
175
  Docker version: 18.06.1-ce-rc1, build 0928140
176
176
 
177
177
  Docker-compose version: 1.22.0, build f46880fe
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ # 追記2
186
+
187
+
188
+
189
+ xdebugの設定
190
+
191
+ dockerのコンテナ内でphp -i | grep xdebug
192
+
193
+
194
+
195
+ ```
196
+
197
+ xdebug [32/807]
198
+
199
+ xdebug support => enabled
200
+
201
+ xdebug.auto_trace => Off => Off
202
+
203
+ xdebug.cli_color => 0 => 0
204
+
205
+ xdebug.collect_assignments => Off => Off
206
+
207
+ xdebug.collect_includes => On => On
208
+
209
+ xdebug.collect_params => 0 => 0
210
+
211
+ xdebug.collect_return => Off => Off
212
+
213
+ xdebug.collect_vars => Off => Off
214
+
215
+ xdebug.coverage_enable => On => On
216
+
217
+ xdebug.default_enable => On => On
218
+
219
+ xdebug.dump.COOKIE => no value => no value
220
+
221
+ xdebug.dump.ENV => no value => no value
222
+
223
+ xdebug.dump.FILES => no value => no value
224
+
225
+ xdebug.dump.GET => no value => no value
226
+
227
+ xdebug.dump.POST => no value => no value
228
+
229
+ xdebug.dump.REQUEST => no value => no value
230
+
231
+ xdebug.dump.SERVER => no value => no value
232
+
233
+ xdebug.dump.SESSION => no value => no value
234
+
235
+ xdebug.dump_globals => On => On
236
+
237
+ xdebug.dump_once => On => On
238
+
239
+ xdebug.dump_undefined => Off => Off
240
+
241
+ xdebug.extended_info => On => On
242
+
243
+ xdebug.file_link_format => no value => no value
244
+
245
+ xdebug.filename_format => no value => no value
246
+
247
+ xdebug.force_display_errors => Off => Off
248
+
249
+ xdebug.force_error_reporting => 0 => 0
250
+
251
+ xdebug.gc_stats_enable => Off => Off
252
+
253
+ xdebug.gc_stats_output_dir => /tmp => /tmp
254
+
255
+ xdebug.gc_stats_output_name => gcstats.%p => gcstats.%p
256
+
257
+ xdebug.halt_level => 0 => 0
258
+
259
+ xdebug.idekey => VScode => VScode
260
+
261
+ xdebug.max_nesting_level => 256 => 256
262
+
263
+ xdebug.max_stack_frames => -1 => -1
264
+
265
+ xdebug.overload_var_dump => 2 => 2
266
+
267
+ xdebug.profiler_aggregate => Off => Off
268
+
269
+ xdebug.profiler_append => Off => Off
270
+
271
+ xdebug.profiler_enable => Off => Off
272
+
273
+ xdebug.profiler_enable_trigger => Off => Off
274
+
275
+ xdebug.profiler_enable_trigger_value => no value => no value
276
+
277
+ xdebug.profiler_output_dir => /tmp => /tmp
278
+
279
+ xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
280
+
281
+ xdebug.remote_addr_header => no value => no value
282
+
283
+ xdebug.remote_autostart => On => On
284
+
285
+ xdebug.remote_connect_back => Off => Off
286
+
287
+ xdebug.remote_cookie_expire_time => 3600 => 3600
288
+
289
+ xdebug.remote_enable => On => On
290
+
291
+ xdebug.remote_handler => dbgp => dbgp
292
+
293
+ xdebug.remote_host => 172.18.0.4 => 172.18.0.4
294
+
295
+ xdebug.remote_log => no value => no value
296
+
297
+ xdebug.remote_mode => req => req
298
+
299
+ xdebug.remote_port => 9005 => 9005
300
+
301
+ xdebug.remote_timeout => 200 => 200
302
+
303
+ xdebug.scream => Off => Off
304
+
305
+ xdebug.show_error_trace => Off => Off
306
+
307
+ xdebug.show_exception_trace => Off => Off
308
+
309
+ xdebug.show_local_vars => Off => Off
310
+
311
+ xdebug.show_mem_delta => Off => Off
312
+
313
+ xdebug.trace_enable_trigger => Off => Off
314
+
315
+ xdebug.trace_enable_trigger_value => no value => no value
316
+
317
+ xdebug.trace_format => 0 => 0
318
+
319
+ xdebug.trace_options => 0 => 0
320
+
321
+ xdebug.trace_output_dir => /tmp => /tmp
322
+
323
+ xdebug.trace_output_name => trace.%c => trace.%c
324
+
325
+ xdebug.var_display_max_children => 128 => 128
326
+
327
+ xdebug.var_display_max_data => 512 => 512
328
+
329
+ xdebug.var_display_max_depth => 3 => 3
330
+
331
+ ```

2

追記

2018/08/30 01:19

投稿

hilhilyzyan
hilhilyzyan

スコア19

test CHANGED
File without changes
test CHANGED
@@ -154,6 +154,10 @@
154
154
 
155
155
 
156
156
 
157
+ ローカルのみでデバッグできれば大丈夫です。
158
+
159
+
160
+
157
161
  Dockerでコンテナ内でxdebugをインストールしています。
158
162
 
159
163
  Dockerコンテナ内でphpunitをしたところ、xdebug自体の動作は認められたので、xdebugに問題は無さそうです。

1

phpinfoと細かい内容を追記しました

2018/08/24 09:47

投稿

hilhilyzyan
hilhilyzyan

スコア19

test CHANGED
File without changes
test CHANGED
@@ -131,3 +131,43 @@
131
131
  VScodeでxdebugが使えたらとても便利です。
132
132
 
133
133
  ご回答お待ちしています。
134
+
135
+
136
+
137
+ # 追記1
138
+
139
+
140
+
141
+ - phpinfo
142
+
143
+
144
+
145
+ phpinfoはこちらです。
146
+
147
+ これをみると、xdebugも、xdebugの設定も読み込まれています。
148
+
149
+ ![phpinfo](c4066733a5f19b49d58611d2ebaa366b.png)
150
+
151
+
152
+
153
+ - もっと細かい情報
154
+
155
+
156
+
157
+ Dockerでコンテナ内でxdebugをインストールしています。
158
+
159
+ Dockerコンテナ内でphpunitをしたところ、xdebug自体の動作は認められたので、xdebugに問題は無さそうです。
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ php version: 7.2
168
+
169
+ xdebug version: 2.6.0
170
+
171
+ Docker version: 18.06.1-ce-rc1, build 0928140
172
+
173
+ Docker-compose version: 1.22.0, build f46880fe