使用VS开发人员工具观察类在内存中的布局

发布时间 2023-08-01 16:27:23作者: DawnTraveler

1.先要生成相应文件

2.打开VS2019开发人员工具

3.cd至文件目录

4.输入cl /d1 reportSingleClassLayoutanimal demo.cpp

其中reportSingleClassLayoutanimal Layout后面的animal为我们想要查看的类名, demo.cpp是其所在的源文件