From 803ed75d68b23fa8779334c3f56efb150d5c24b6 Mon Sep 17 00:00:00 2001 From: David Thielen Date: Thu, 3 Oct 2024 13:33:04 -0600 Subject: [PATCH] Removed Trap() --- README.md | 12 ------------ TradeWindsCommon/TradeWindsCommon.csproj | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/README.md b/README.md index f6866a9..1a4c5b5 100644 --- a/README.md +++ b/README.md @@ -12,18 +12,6 @@ These are some classes I created to extend a number of basic classes. The StringExtensions has some pretty specific methods that we use to extract metadata from search strings. Included here because this is used by many apps for their tags, etc. It can extract [tag], {tag}, (tag), and @tag from a string. The @tag does not allow spaces (the space is the end delimiter). -## Debug - -Trap() is a construct I discuss in my book No Bugs! Basically you place this when you write new code, at the entry to each function, inside every if, else, where, case, etc. - -When you first run that new code it will drop you in to the debugger at each trap. Mark that Trap() to be deleted and then single step through the new code. 90% of the time the code is fine. 10% of the time the code will do something unexpected and you can then fix the issue. - -The way I mark the traps I hit is to put a * at the beginning of that line -```csharp -* Trap(); -``` -That way the line numbers don't change so the debugger is in sync with the source code. But when your debug session is complete, a compile will fail until you remove those traps you've now walked through. - ## Unit Tests Not all of these have unit tests. But all have been tested thoroughly in use in our applications. diff --git a/TradeWindsCommon/TradeWindsCommon.csproj b/TradeWindsCommon/TradeWindsCommon.csproj index ab29fbd..018acf8 100644 --- a/TradeWindsCommon/TradeWindsCommon.csproj +++ b/TradeWindsCommon/TradeWindsCommon.csproj @@ -3,7 +3,7 @@ net8.0 enable - enable1.0.0.2 + enable1.0.0.3 True Basic utility classes DavidThielen