From c3f3821e6b05aa9b870015c721c93aabbdbac808 Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Fri, 30 Jun 2017 18:14:43 +0200 Subject: [PATCH] add debugger --- paket.dependencies | 1 + paket.lock | 4 ++++ src/Nightwatch.fs | 4 +++- src/paket.references | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/paket.dependencies b/paket.dependencies index faf4993..ce461e8 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -7,6 +7,7 @@ nuget Fable.PowerPack nuget Fable.React nuget Fable.React.Native nuget Fable.Elmish +nuget Fable.Elmish.Debugger nuget Fable.Elmish.React nuget Fable.Elmish.HMR nuget Fable.Import.Browser diff --git a/paket.lock b/paket.lock index 2ea599a..a34140a 100644 --- a/paket.lock +++ b/paket.lock @@ -27,6 +27,10 @@ NUGET Fable.Core (>= 1.1.3) - restriction: >= netstandard1.6 Fable.PowerPack (>= 1.1) - restriction: >= netstandard1.6 FSharp.Core (>= 4.2.1) - restriction: >= netstandard1.6 + Fable.Elmish.Debugger (0.9) + Fable.Core (>= 1.1.2) - restriction: >= netstandard1.6 + Fable.Elmish (>= 0.9) - restriction: >= netstandard1.6 + FSharp.Core (>= 4.2.1) - restriction: >= netstandard1.6 Fable.Elmish.HMR (1.0) Fable.Core (>= 1.2.4) - restriction: >= netstandard1.6 Fable.Elmish (>= 0.9.2) - restriction: >= netstandard1.6 diff --git a/src/Nightwatch.fs b/src/Nightwatch.fs index 72b800a..5db642e 100644 --- a/src/Nightwatch.fs +++ b/src/Nightwatch.fs @@ -3,6 +3,7 @@ module Nightwatch open System open Elmish open Elmish.React +open Elmish.Debug open Elmish.ReactNative open Elmish.HMR open Fable.Core.JsInterop @@ -25,7 +26,8 @@ Program.mkProgram App.init App.update App.view #if RELEASE #else |> Program.withConsoleTrace +|> Program.withDebugger |> Program.withHMR #endif |> Program.withReactNative "nightwatch" -|> Program.run \ No newline at end of file +|> Program.run diff --git a/src/paket.references b/src/paket.references index 3d7bf20..cbb4868 100644 --- a/src/paket.references +++ b/src/paket.references @@ -4,6 +4,7 @@ Fable.PowerPack Fable.React Fable.React.Native Fable.Elmish +Fable.Elmish.Debugger Fable.Elmish.React Fable.Elmish.HMR Fable.Import.Browser