   Breakpoints in DLLs
  I''m using VS.NET 2003 and have 2 projects inside my soloution. One of them is the .exe application project, while the other is a .dll project. My exe uses the dll in its source code. When I put a breakpoint anywhere in my dll file and run the exe as the start up project, the project fails to break at the breakpoint. Even if I change the startup project to the dll project, it still fails to stop at the break point.I have also made sure that my code is in debug configuration and not release.How can I get it to stop at the break point?   ----MikeTeam AI: Http://members.iinet.net.au/~slyons/teamai
  It is quite interesting, in the dll project, you must set it to load the executable that loads the dll.Check the DLL Project Properties->Debugging (2nd menu from the top)If you are debugging the application set a breakpoint just before the call you want to debug (it has to be in your application though). Then you step into the call. Good luck with your project.If it works for you like it did for me then it will load the source code (even if the dll is in a different folder). ;  Oh, an amendment is that you put the breakpoint on the call into the dll. ;quote:Original post by Anonymous Poster  It is quite interesting, in the dll project, you must set it to load the executable that loads the dll.Check the DLL Project Properties->Debugging (2nd menu from the top)It is already set to the exe application that loads the dll, so no luck there.quote:If you are debugging the application set a breakpoint just before the call you want to debug (it has to be in your application though). Then you step into the call. Good luck with your project.Placed my breakpoint before my constructors call... stepped into the code and ran through each line of the new memory allocatoin command.. and then jumped back into my exe.... so no luck there eitherAny more ideas?   ----MikeTeam AI: Http://members.iinet.net.au/~slyons/teamai;  My breakpoint in my DLL when running the app says "The breakpoint will not be hit. No executable code is currently located at this section". The code I am using at my breakpoint is "i++;" so it should break on it.   ----MikeTeam AI: Http://members.iinet.net.au/~slyons/teamai;  Interesting, I have VS .Net ''03 too, I was playing around with the a dll earlier today.Maybe what you should try doing is placing the code in question in your executable (err... um class?) and expiriment with it there.Then when it has been debugged you put it back in the dll code.Not such a good idea if it is a class and it will change often... ;quote:Original post by Anonymous Poster  Maybe what you should try doing is placing the code in question in your executable (err... um class?) and expiriment with it there.Then when it has been debugged you put it back in the dll code.Its ok if I do that for the moment, but later on it will become too hard to do that due to the number of classes (I already have 6 smallish classes and still more to come) which will be in that DLL.    ----MikeTeam AI: Http://members.iinet.net.au/~slyons/teamai;  Settings of your main project -> Debug Tab -> Change Category  to Additional DLL''SAdd your DLL here.;quote:Original post by Anonymous Poster  Settings of your main project -> Debug Tab -> Change Category  to Additional DLL''SAdd your DLL here. Debug Tab?? Wheres that? If you are talking about the Project Properties -> Configuration Properties -> DebuggingI can''t find Additional DLL''s under that.Can you give me a little more information on where to find it?Thanks ;  Apologies - just noticed you are using VS.NET. I''m using VS 6, guess it''s not the same - have not used .NET before. 