Install DBG Debugger to debug your PHP program (original)

zhaozj2021-02-16  81

Install DBG Debugger to debug your PHP program (original)

/ *

Reposted please keep

Topic: Install DBG Debugger to debug your PHP program

Author: z33

From: http://www.itroot.org

* /

This tutorial is to continue the previous "Eclipse-based PHP Development Environment" under Windows, so you need to install Eclipse, Eclipse is a great development platform for IBM's host development, and the current version is already 3.0.

Article address:

http://www.pig8.com/bbs/index.php?showtopic=193

· First download php_dbg.dll, download the address as follows:

http://dd.cron.ru/dbg/download.php?h=211.23-win32

· Unzip, then find the same php_dbg.dll-x.x.x as the PHP version you installed,

Change the name to PHP_DBG.DLL and then copy php_dbg.dll to the extensions directory in your PHP installation directory.

· Edit PHP.INI, find the following, and make changes as set below:

This is to see output while debugging

iMPlicit_flush = on

Here to check, set your own PHP installation directory path

EXTENSION_DIR = "C: / PHP / EXTENSIONS /

Fixed the configuration item of PHP_DBG.DLL

EXTENSION = php_dbg.dll

Fill a Debug Configuration Item

[Debugger]

Debugger.enabled = TRUE

Debugger.profiler_ENABLED = TRUE

Debugger.jit_host = ClientHost

Debugger.jit_port = 7869

· Restart Apache.

· You can now open the Eclipse debugging a PHP script, first select the "Add / Remove BreakPoint" item under "run" item in the menu bar.

·point

DEBUG button right small arrow, select Debug As -> PHP Application,

A tip will appear, ask if you enter the Debug view for debugging, select "Yes", perform the debug view.

· After coming in, it can be debugged in a single step, and the right side is all variables, cool. Such as

?

转载请注明原文地址:https://www.9cbs.com/read-15092.html

New Post(0)