Cannot set breakpoint in a certain project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • noleander

    Cannot set breakpoint in a certain project

    Hi. Ive been using Visual C++ for two years on an application. The
    application is one solution, containing 10 projects. 9 of the projects build
    libraries (*.lib). I've been debugging the application for 2 years. One
    thing that has been happening for several months is a genuine mystery:

    I cannot set breakpoints in one of the libraries (source code). I can
    create the breakpoint in the source code editor, but when I attach to the
    application, I get a warning message:

    "he following breakpoint cannot be set
    At MyFile.cpp, line 123
    The Common Language Runtime was unable to set the breakpoint

    And the breakpoint, indeed, does not function. This problem holds for every
    function in this one library (project). But only this one project: all
    other projects in the solution have no problem with breakpoints.

    Another clue: When I am stepping lines in the debugger, and I step down
    into any function in the library with the problem, Visual C++ shows the
    source code, and kind of steps thru it, but it takes several steps to move
    one source code line, almost as if each "step" steps one line of assembly.

    The variables "watch" display does not work for this one library, either.

    All this is compiled in the Debug configuration, not Release.

    The mysterious thing is that the problem is only with the one Library
    (project) in this solution: My other 8 libraries work fine.

    So my question is: Does anyone have any ideas what would cause Visual C++
    to be unable to set a breakpoint (at attach time) in one particular project
    (library) when all other projects in the solution have no problem.

    Thanks in advance for any help.

Working...