Skip to content

Commit

Permalink
fix conditional debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdavid committed Feb 19, 2024
1 parent 1adbfeb commit 7440fd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
{
using (var db = new LiteEngine(settings))
{
#if DEBUG
db.SimulateDiskWriteFail = (page) =>
{
var p = new BasePage(page);
Expand All @@ -36,6 +37,7 @@
page.Write((uint)123123123, 8192-4);
}
};
#endif

db.Pragma("USER_VERSION", 123);

Expand Down

0 comments on commit 7440fd8

Please sign in to comment.