回答

1

VS2015中std::shared_ptr的控制塊有_Uses_Weaks成員。只需通過它們的監視表達式爲它們設置數據斷點:例如&(*(ptr)._Rep)._Weaks

以下是截圖:

VS 2015 shared_ptr control block debug view