Not able to set breakpoint in visual studio

后端 未结 8 944
后悔当初
后悔当初 2021-01-11 15:36

I am using Visual Studio 2013 and I am facing a weird issue from last few days. Whenever I try to set a break point, I get an error

\"The Following breakpoint can         


        
相关标签:
8条回答
  • 2021-01-11 16:07

    I had the same problem and I've fixed it by creating a new solution file to the project files.

    0 讨论(0)
  • 2021-01-11 16:08

    Check your program for subtle bugs. My failure chain that caused this error was:

    1. I inadvertently put a duplicate key/value pair in App.config
    2. Code that read that key/value via the ConfigurationManager silently failed
    3. Structs returned by that code were invalid
    4. Breakpoints on any line that referenced the invalid structs failed to bind

    Once I fixed Item 1, everything started working again.

    0 讨论(0)
  • 2021-01-11 16:08

    There could also be another open app that steals the "F9" shortcut.

    Check your systray for open apps ;)

    0 讨论(0)
  • 2021-01-11 16:09

    I just encountered this myself.

    To my surprise, I didn't observe I had a syntax error in a line further above.

    With that one syntax error, it was causling the Studio 2019 IDE to fail in allowing me to set a break point anywhere.

    So do double check if that's the case.

    0 讨论(0)
  • 2021-01-11 16:12

    I don't know if you resolved your issue but I faced the same problem and the "solution" was to change from "Release" configuration to "Debug".

    Hope this Helps.

    Cheers

    0 讨论(0)
  • 2021-01-11 16:17

    I had the same problem with Python code. Everything was ok, but

    "The breakpoint failed to bind"

    If the line number (where is the breakpoint set) is greater then 512, than you can't debug. I simply reorganized my code, to be earlier that part with breakpoint and magically debugging is working again...

    At this link you can find a full answer (at final rows):http://pytools.codeplex.com/workitem/3007. So this is fixed in last version of Python Tools, but that version (2.2) works with VS2015 only.

    0 讨论(0)
提交回复
热议问题