False hits on data breakpoints on local variables can be caused by reuse of registers.Depending of the level of optimalization, the compiler might try to reuse a register for several variables.

 
  • 根据对程序编译优化级别的不同,编译器在编译时有可能会用一个寄存器存储多个变量的值,即多个变量使用一个寄存器,这将会导致在调试过程中无法正确获取局部变量在数据断点处的值。
今日热词
目录 附录 查词历史