[Welcome to phpdbg, the interactive PHP debugger, v7.4.3] To get help using phpdbg type "help" and press enter [Please report bugs to <http://bugs.php.net/report.php>] prompt>
// 这一步需要前面启动phpdbg时 参数带上 -e debug.php run 才能正常执行 prompt> run
// 然后按 ctrl+c 表示开始断点,此时断在哪是随机的,因为还没开始添加断点 [Program received signal SIGINT] prompt>
[Welcome to phpdbg, the interactive PHP debugger, v7.4.3] To get help using phpdbg type "help" and press enter [Please report bugs to <http://bugs.php.net/report.php>] prompt>
// 这一步需要前面启动phpdbg时 参数带上 -e debug.php run 才能正常执行 prompt> run [PHP Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 4194312 bytes) in C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2022.1\scratches\debug.php on line 16]
// 打印打印当前的堆栈信息 prompt> back frame #0: test() at C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2022.1\scratches\debug.php:16 frame #1: {main} at C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2022.1\scratches\debug.php:22
// 检查$t1 变量 prompt> ev $t1 T1 Object ( )
// 检查$arr 变量 prompt> ev print_r(count($arr)) 655361