Re: Setting Breakpoints in referenced code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




a) I was able to change the dll source from the main application, but the
changes didn't take effect, even after I recompiled the main application. In
the debugger, I could watch the program SKIP OVER the line I added! I take
it that because the dll is referenced in my project that I get the "library"
version, no matter what I do to the source that was added to my project.
When I went to the library solution, the code was changed there, and when I
recompiled the library solution, the main application started working. Am I
interpreting this correctly? I can make changes to the dll code in the main
solution, but they won't take effect until I go to the library solution and
compile it?


Yes, it is correct. After sources of the library have been changed, you should
rebuild the library to put changes into effect.

b) Is there something I can do so that I don't "accidentally" make changes
to library code that I have added to my main application just for debugging?
(Other than just pay attention LOL.)


If you are working with SourceSafe, keep the library sources checked in
(and thus readonly) while debugging the main application.

May be better ways exist, but I don't know.

c) Do you have any idea what Visual SourceSafe is complaining about? I'm
planning on removing the library project from the main app as soon as I'm
finished de-bugging, but what happens in the meantime? Is there really a
problem? Both the library and the main projects are under source control.


Unfortunately, I don't know. I could try if it is VSS 6.0 or older, and if you
would tell the exact message text reported, plus the layout of projects in VSS.
But probably it is better to ask in a SourceSafe-related newsgroup
(e.g. microsoft.public.visual.sourcesafe).

Oleg



.



Relevant Pages

  • Re: VS Gets wrong version
    ... Hopefully they'll help you understand the best way to use VSS and VStudio. ... Joe ... If we try to make an setup project, and install ... > while debugging, and another version after stopping the debugger.) ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: How to debug a DLL code
    ... > Now while debugging the EXE how can i debug in to the DLL code (i had ... > Well infact last time it automatically entered the dll code so i never ...
    (microsoft.public.vc.debugger)