How To Stop Debug Symbols

How To Stop Debug Symbols

Old forum URL: forums.lhotka.net/forums/t/1110.aspx


Smeat posted on Sunday, September 03, 2006

Hi All

I have compiled the CSLA framework in release mode and reference the release dll from my projects but when debugging my apps, each time my code calls into the CSLA framework, the debugger jumps into the CSLA code.

How can I stop the CSLA framework source code being available while i'm debugging my apps?

I'm using VS.NET 2005 Pro with CSLA 2.0.3

TIA for any help

Smeat

Brian Criswell replied on Sunday, September 03, 2006

I think that if you remove the .pdb file from wherever you are referencing the .dll, it should not have debug information and will not step in.

Smeat replied on Monday, September 04, 2006

Thanks for the reply.

I tried removing the .pdb files from both my project bin directory and the CSLA project bin directory but this has no effect.

I'm sure there must be a way to compile without debug symbols but I can't find seem to find how.

Any ideas?

Smeat

Brian Criswell replied on Monday, September 04, 2006

Do you have the CSLA project as part of your solution file?

Smeat replied on Monday, September 04, 2006

No, ive compiled the CSLA framework in release mode and referenced the .dll in the bin/release directory.

Brian Criswell replied on Monday, September 04, 2006

One thing I do is create a folder called "Referenced Assemblies" in the same folder as my solution folder.  You could try doing that and copying the built .dll, .pdb and .xml files into the new folder and removing the references and adding a reference to the new .dll in the new folder.  Then build clean and rebuild.  If that does not do it, I am not sure what will.  Somehow your project knows where the source files are and is opening them.

Smeat replied on Tuesday, September 05, 2006

Thanks for the responses, I managed to solve this as follows:

1.Open the CSLA framework solution.

2. Right click on the Csla project and select properties.

3. Select the Build tab.

4. Set the Configuration dropdown to "Release".

5. Click the Advanced tab.

6. Set the Debug Info to "none".

7. Recompile the Csla framework.

8. Open your own project.

9. Right clickyour project in Solution Explorer and select "Clean".

10. Recompile your project.

Now you can debug your project without stepping into the Csla framework code.

Hope this helps someone else.

Smeat

Reactance replied on Wednesday, September 06, 2006

Thanks guys that helped me alot :-),

Copyright (c) Marimer LLC