|php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login|
Unix | Windows
Generating a backtrace, with a compiler, on Windows
You'll need to install MS Visual Studio 2008, 2012 or later. You'll also need to
If you downloaded the debug-pack from the snaps site, extract it into your PHP directory and be sure to put the PDB files that belong to the extensions into your extension directory.
If you compile PHP by your own, you can also use a newer version of MSVC.
When PHP crashes, click Cancel to debug the process. Now MSVC starts up in Debug View. If you don't already see the call stack, go into the View menu and choose Debug Windows → Call Stack.
You'll now see something similar to the following lines, this is the backtrace:
Generating backtrace, without compiler, on Windows
Generating a backtrace without compiler is usually a two step process:
There are several solutions for either step; in the following we describe one solution each.
Use ProcDump to generate crash dump files
Download ProcDump, and register it as the Just-in-Time (AeDebug) debugger:
Use any suitable folder to store the crash dump files instead of
Use Debug Diagnostic Tool to analyze the crash dump
After the analysis has finished, the DebugDiag Analysis Report opens in Internet Explorer; the relevant part of that report is the stack backtrace, which looks similar to the following:
Copyright © 2001-2021 The PHP Group
All rights reserved.
|Last updated: Fri Sep 24 13:03:38 2021 UTC|