define fyn_pl
p "=>=>=>=>=>=>=>=> begin =>=>=>=>=>=>=>=>"
set $___tmp = $arg0.pListHead
while $___tmp
p $___tmp.arKey
set
set print pretty on
如果要将其作为默认设置,可以在`~/.gdbinit`中加上这句
if xcode-select -p &>/dev/null; then
echo 'installed';
else
echo 'not install';
fi
安装xcode命令行工具
xcode-select --install
安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
通过brew安装php5.6(或其它版本)
brew install php@5.6
通过brew安装php切换器
brew install brew-php-switcher
切换php版本
获取返回值
echo $?
获取pid
echo $!