You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This MUST be the IP address of the IDE (your computer)
76
+
- "IDE_IP=192.168.1.130"
77
+
# This is the default value, need to match the xdebug.remote_port on your php.ini
78
+
- "XDEBUG_PORT=9010"
79
+
# Use this to enable verbose debugging on the proxy
80
+
# - "ADDITIONAL_ARGS=-vv --debug"
81
+
networks:
82
+
- backend
83
+
84
+
# This is your application containers, you need to link it to the proxy
85
+
app:
86
+
# The proxy need an access to the project files, to be able to do the path mapping
87
+
volumes:
88
+
- .:/data
89
+
links:
90
+
- debugproxy
70
91
```
71
-
5. Enable your IDE's xdebug listener, ensure xdebug is enabled (e.g. if you use bookm)
72
-
6. Use `xdebug_break()` in your code to force your first break.
73
-
7. The first time you have to configure your IDE with the popup that should open on the first `xdebug_break();` hit. (Or "Click to set up path mappings" in your debug console UI)
74
-
If not, configure your PHP Server settings yourself.
75
92
76
-
Debugging the debugger:
93
+
**Options summary:**
94
+
*`IDE_IP` The primary local W-/LAN IP of your machine where your IDE runs on
95
+
*`IDE_PORT` The Port your IDE is listening for incoming xdebug connections. (The port the debug proxy will try to connect to)
96
+
*`XDEBUG_PORT` The port on which xdebug will try to establish a connection (to this container)
97
+
*`FRAMEWORK` Currently supported values: `flow` and `dummy`
98
+
*`ADDITIONAL_ARGS` For any additional argument like verbosity flags (`-vv`) or debug mode (`--debug`) (or both)
99
+
100
+
**Debugging the debugger**
77
101
78
102
Start the debug proxy with verbose flags if it does not connect to your IDE.
79
-
The debug proxy does not quit after stopping the process that started it. You have to kill it in the container manually.
103
+
The debug proxy does not quit after stopping the process that started it.
104
+
You have to kill it in the container manually.
80
105
81
106
Hint:
82
107
@@ -88,9 +113,11 @@ proxy classes.
88
113
FLOW_PATH_TEMPORARY_BASE=/tmp/flow/Data/Temporary
89
114
```
90
115
91
-
##### Using with --framework dummy
116
+
Using with --framework dummy
117
+
----------------------------
118
+
119
+
If your debugging target is the code generated by Flow's AOP Framework then you can start the debugging proxy with `--framework dummy`.
92
120
93
-
If your debugging target is the code generated by Flow's AOP Framework then you can start the debugging proxy with --framework dummy
94
121
In that case it won't remap from the generated code to your source but "pass through" the debugger steps.
95
122
To see what's going on you have to have the generated code in a folder visible to your IDE (in your project).
96
123
You can either abstain from `FLOW_PATH_TEMPORARY_BASE` or set it to a path that is in your IDE's project.
0 commit comments