【发布时间】:2023-03-17 21:24:01
【问题描述】:
我最初使用 Visual Studio C++ Express,我已切换到 Ultimate,但我目前对调试器移动断点的原因感到困惑,例如:
if(x > y) {
int z = x/y; < --- breakpoint set here
}
int h = x+y; < --- breakpoint is moved here during run time
或
random line of code < --- breakpoint set here
random line of code
return someValue; < --- breakpoint is moved here during run time
它似乎在代码中的随机位置执行此操作。有时我在这里做错了吗?我从来没有遇到过这样的快速版本问题。
【问题讨论】:
标签: c++ visual-studio debugging visual-c++ breakpoints