File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -152,16 +152,17 @@ be produced by adding `--enable-debug-pack`. These options are mutually exclusiv
152
152
153
153
## Debugging with Visual Studio
154
154
155
- If you're new to Visual Studio, going through the official documentation and tutorials is
156
- strongely recommended.
157
-
158
155
- configure with either ` --enable-debug ` or ` --enable-debug-pack `
159
156
- a debug build might bring better experience for dev, but sometimes you want to debug a release build
160
157
- ` nmake run ARGS=yourscript.php DEBUGGER=1 ` , that will open a Visual Studio window
161
158
- any additional runtime options for PHP or the script executed go to ARGS, too
162
159
- select ` Debug -> New Breakpoint -> Function Breakpoint ` and add a function where the debugger should break
163
160
- click ` Start `
164
161
162
+ Adding a breakpoint before starting debugging might be not necessary, if a crash is debugged. When such a script runs
163
+ under the debugger, the debugger will stop at the crashing point. In that case, a breakpoint can be added
164
+ around the crashed code directly.
165
+
165
166
## Debugging with WinDbg
166
167
167
168
PHP can also be debugged with the tools from the WinDbg package. There is currently no way
You can’t perform that action at this time.
0 commit comments