Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Microsoft Visual C++ 2015 で、Boost 共有ポインターに "データ ブレークポイント" を設定して、強い参照や弱い参照の数が変わるたびにデバッガーが中断するようにするにはどうすればよいですか?
std::shared_ptrVS2015の a の制御ブロックには_Usesと_Weaksメンバーがあります。ウォッチ式を使用してこれらにデータ ブレークポイントを設定するだけです。&(*(ptr)._Rep)._Weaks
std::shared_ptr
_Uses
_Weaks
&(*(ptr)._Rep)._Weaks
スクリーンショットは次のとおりです。