I need to Debug my setup project.
-
Dear Friends. Actually i need to debug my setup projects. which is is Release mode. i can able to debug my projects in Debug mode. whats is wrong in my coding public override void Install(System.Collections.IDictionary stateSaver) { try { System.Diagnostics.Debugger.Launch(); //---- // My Stuff here //---- } catch (Exception ex) { } } And also i tried this instead of System.Diagnostics.Debugger.Launch(); #if DEBUG if (System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Break(); #endif Please tell me, the solution to debug my project in Release mode.
-
Dear Friends. Actually i need to debug my setup projects. which is is Release mode. i can able to debug my projects in Debug mode. whats is wrong in my coding public override void Install(System.Collections.IDictionary stateSaver) { try { System.Diagnostics.Debugger.Launch(); //---- // My Stuff here //---- } catch (Exception ex) { } } And also i tried this instead of System.Diagnostics.Debugger.Launch(); #if DEBUG if (System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Break(); #endif Please tell me, the solution to debug my project in Release mode.
Seems you don't have a clear idea about the Debugging API. What you exactly want to do? Tracing any problem happens during the setup? ...you can use logging for that.
Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV