我在 Windows 上使用 ZeroBrane 在 linux 上远程调试我的程序。
我的程序从 C++ 调用 lua。
但是断点不能命中。
ZeroBrane 输出如下:
Debugger server started at AGOC3-706:8172.
[192.168.88.238:47444] Debugger sent (command): basedir D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\
New base directory is D:/WorkSpace/sichuan/branches/v1.0.1-2017-07-12/lua/
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil
[192.168.88.238:47444] Debugger sent (command): delallb
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 37
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 37 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 305
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 305 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 831
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 831 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1718
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1718 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 3441
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 3441 nil
[192.168.88.238:47444] Debugger sent (command): load D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua
[192.168.88.238:47444] Debugger received (file, line, err): lua/hall2/main.lua 2 nil
[192.168.88.238:47444] Debugger sent (command): basedir D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\ lua/
New base directory is D:/WorkSpace/sichuan/branches/v1.0.1-2017-07-12/lua/
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil
[192.168.88.238:47444] Debugger sent (command): delallb
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 37
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 37 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 305
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 305 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 831
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 831 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1718
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1718 nil
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 3441
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 3441 nil
Mapped remote request for 'lua/' to 'D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\'.
Debugging session started in 'D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\'.
[192.168.88.238:47444] Debugger sent (command): run