Open yoke88 opened 3 years ago
能否写个自定义的nmap script ,然后让它load debugger?
调试的前提是你说的这个进程会把lua的函数符号导出。不然你只能重新编译把调试器link进去。
我今天刚试过luapanda的调试器,可以在要调试lua中require一个调试器脚本,然后运行的时候连接到监听的vscode调试器端口上,这个时候就可以调试了
不过调试的时候也有些问题。比如变量值都是nil,但是在variable窗口又能看到实际值,在func里的断点断不住等
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: actboy168 @.> Sent: Wednesday, May 26, 2021 9:05:01 PM To: actboy168/lua-debug @.> Cc: yoke88 @.>; Author @.> Subject: Re: [actboy168/lua-debug] 有没有办法调试nmap 的lua script (#132)
调试的前提是你说的这个进程会把lua的函数符号导出。不然你只能重新编译把调试器link进去。
― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/actboy168/lua-debug/issues/132#issuecomment-848751988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYAD4VEDHVCNMDYOC4LYZDTPTWX3ANCNFSM45Q2SZUQ.
luadebug不是纯lua的调试器,不可能像luapanda一样只加载lua就能启用调试
nmap 的脚本引擎感觉是嵌入在nmap.exe 里,试了了launch 模式的第二种,但黑窗口一闪就没有了,调试器还在running中。