Visual Studio - Debugger Breakpoints Move and no longer hit the lines they are supposed to

后端 未结 5 1021
别那么骄傲
别那么骄傲 2021-02-20 11:42

Currently I\'m seeing an oddity in functions in one of my programs in visual studio is acting. VS allows me to put break points at certain points in the file, but then in debug

5条回答
  •  面向向阳花
    2021-02-20 12:34

    Here are some ideas:

    1. Your source file has been changed since you last ran the debugger.
    2. Your code has been optimized and perhaps some lines removed by the compiler through optimization.
    3. VS doesn't like the actually line the breakpoint is assigned to. It always likes the the last line of a statement spread across several lines.
    4. The source file your displaying is different than the source file that was compiled (they could be from two different folders).

提交回复
热议问题