microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.78k stars 5.37k forks source link

Debugger does not work #503

Open vtortola opened 7 years ago

vtortola commented 7 years ago

When I try to debug a LUA script, redis-cli gets stuck.

c:\>cd "\Program Files\Redis"

c:\Program Files\Redis>echo return ARGV[1] + ARGV[2] > test.lua

c:\Program Files\Redis>redis-cli --ldb --eval test.lua , 2 3
Lua debugging session started, please use:
quit    -- End the session.
restart -- Restart the script in debug mode again.
help    -- Show Lua script debugging commands.

From that point the application does not accept input.

However I can use redis-cli.exe to debug a script connecting to an instance or Redis in Linux without problems. So the problem seems to be in redis-server.exe.

I am using the latest version found in the releases in this repository.

C:\Program Files\Redis>redis-cli info
# Server
redis_version:3.2.100
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:dd26f1f93c5130ee
redis_mode:standalone
os:Windows
arch_bits:64
multiplexing_api:WinSock_IOCP
process_id:25124
run_id:2a1fd12ffca044ba7299b437b216291202801806
tcp_port:6379
uptime_in_seconds:658
uptime_in_days:0
hz:10
lru_clock:13633912
executable:C:\Program Files\Redis\"C:\Program Files\Redis\redis-server.exe"
config_file:C:\Program Files\Redis\redis.windows-service.conf