Skip to content

Commit 0483271

Browse files
committed
Extend debug notes
1 parent b52a0c2 commit 0483271

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,17 @@ be produced by adding `--enable-debug-pack`. These options are mutually exclusiv
152152

153153
## Debugging with Visual Studio
154154

155-
If you're new to Visual Studio, going through the official documentation and tutorials is
156-
strongely recommended.
157-
158155
- configure with either `--enable-debug` or `--enable-debug-pack`
159156
- a debug build might bring better experience for dev, but sometimes you want to debug a release build
160157
- `nmake run ARGS=yourscript.php DEBUGGER=1`, that will open a Visual Studio window
161158
- any additional runtime options for PHP or the script executed go to ARGS, too
162159
- select `Debug -> New Breakpoint -> Function Breakpoint` and add a function where the debugger should break
163160
- click `Start`
164161

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+
165166
## Debugging with WinDbg
166167

167168
PHP can also be debugged with the tools from the WinDbg package. There is currently no way

0 commit comments

Comments
 (0)