diff --git a/redis/redis.go b/redis/redis.go
index 2d66e19f5d92095009757b92aa3822d6ceed2ad8..ea0e0b59e189c027fb453c6022e972405b48534e 100644
--- a/redis/redis.go
+++ b/redis/redis.go
@@ -44,7 +44,7 @@ func GetRedisClient(isDebug bool) *ClientWithHelpers {
 
 func connectToRedis(isDebug bool) *ClientWithHelpers {
 	redisHost := os.Getenv("REDIS_HOST")
-	if redisHost == "false" || redisHost == "" {
+	if (redisHost == "false" || redisHost == "") && !isDebug {
 		return &ClientWithHelpers{
 			Client:    nil,
 			Available: false,