Inverse Heisenbug - Unit test fails only when debugger is attached

后端 未结 4 2088
不知归路
不知归路 2021-01-19 21:39

I recently fixed a defect in our product, the symptom of which was an access violation caused by accessing a dangling pointer.

For good practice I added a unit test

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 22:15

    I don't know if this will help you any, but I once ran into a bug which would manifest differently if the program was run under the Visual Studio debugger, or program was run externally, then had debugger attached.

提交回复
热议问题