diff --git a/spade.cabal b/spade.cabal
--- a/spade.cabal
+++ b/spade.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           spade
-version:        0.1.0.3
+version:        0.1.0.4
 synopsis:       A simple programming and debugging environment.
 description:    A simple weakly typed, dynamic, interpreted programming langauge and terminal IDE.
 category:       language, interpreter, ide
diff --git a/src/IDE/IDE.hs b/src/IDE/IDE.hs
--- a/src/IDE/IDE.hs
+++ b/src/IDE/IDE.hs
@@ -271,6 +271,11 @@
                   -- Initialize IDE debuggins state
                   dIn <- readTBQueue debugIn
                   check (dIn == Start || dIn == StartStep) -- Wait till the Start command
+                  modifyTVar ideStateRef
+                    (\idestate ->
+                        idestate
+                          { idsDebugEnv = Just ideDebugEnv
+                          })
                   pure dIn
                 let
                   stateFn = case startMode of
