File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Rubberduck.Parsing/Common Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ private void InitializeAddIn()
211
211
catch ( Exception exception )
212
212
{
213
213
_logger . Fatal ( exception ) ;
214
- System . Windows . Forms . MessageBox . Show (
214
+ // TODO Use Rubberduck Interaction instead and provide exception stack trace as
215
+ // an optional "more info" collapsible section to eliminate the conditional.
216
+ MessageBox . Show (
215
217
#if DEBUG
216
218
exception . ToString ( ) ,
217
219
#else
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Diagnostics ;
3
2
4
3
namespace Rubberduck . Parsing . Common
5
4
{
6
- // Conditional cannot be expressed negatively, so we use combined #if and Conditional
7
- // to ensure that the code is always checked but omitted in non-debug builds.
5
+ // Conditional cannot be an expression, so we use combined #if and an
6
+ // non-existent flag to ensure that the code is always checked at the
7
+ // compile time but omitted in non-debug builds.
8
8
#if ! DEBUG
9
9
[ Conditional ( "I_WILL_NEVER_EXIST_CRY_MY_BELOVED_DUCK" ) ]
10
10
#endif
You can’t perform that action at this time.
0 commit comments