I set a breakpoint in my code in Visual C ++, but when I run, I see the error mentioned in the header.
I know this question was asked earlier in Qaru ( Breakpoints cannot be set and disabled ), but none of the answers there fully explained the problem I see. The closest I see is something about the linker, but I donโt understand this - so if someone could explain in more detail what would be great.
In my case, I have 2 projects in Visual C ++ - production dsw and test code dsw. I downloaded and rebuilt both dsws in debug mode. I want a breakpoint in production code that runs through test scripts. My problem: I get an error when running the test code because the breakpoint is in the production code, which does not load when the test starts.
At the beginning of the test script, there is the mytest_initialize () command. I guess this goes away and loads the production dll. Once this line is executed, I can put the breakpoint in my production code and run until I hit it. But it is rather annoying when you need to run to this line, set a breakpoint and continue every time I want to run a test.
So, I think that the problem in Visual C ++ does not mean that the two projects are related. Is this a linker problem? What does the linker do and what settings should be changed to make this work?
Thanks in advance. Sorry if instead I have to add this question to an existing one, this is my first post, so I'm not quite sure how this should work.
[Update 1] I think Chris O identified the problem. I will add another update if I can decide how to use the project options to make this work.
source share