diff options
| author | ruki <[email protected]> | 2026-02-25 15:27:16 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-25 15:27:16 +0800 |
| commit | 1c2db6b51b668da137e09103aec0723104e445f5 (patch) | |
| tree | 71c3d42cdf16afd9484c180e5bf8d5e7791b7eae | |
| parent | f7ee57213edeb8372a6a00407e7899bf62d7897b (diff) | |
Update run.lua
| -rw-r--r-- | xmake/modules/devel/debugger/run.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmake/modules/devel/debugger/run.lua b/xmake/modules/devel/debugger/run.lua index 60e2b7b5a..4a412ce9b 100644 --- a/xmake/modules/devel/debugger/run.lua +++ b/xmake/modules/devel/debugger/run.lua @@ -356,18 +356,16 @@ function main(program, argv, opt) } -- for windows target or on windows? - if (config.plat() or os.host()) == "linux" then - table.insert(debuggers, 1, {"nnd", _run_nnd}) - end - - -- for windows target or on windows? - if (config.plat() or os.host()) == "windows" then + local plat = config.plat() or os.host() + if plat == "windows" then table.insert(debuggers, 1, {"windbg", _run_windbg}) table.insert(debuggers, 1, {"ollydbg", _run_ollydbg}) table.insert(debuggers, 1, {"x64dbg", _run_x64dbg}) table.insert(debuggers, 1, {"vsjitdebugger", _run_vsjitdebugger}) table.insert(debuggers, 1, {"devenv", _run_devenv}) table.insert(debuggers, 1, {"raddbg", _run_raddbg}) + elseif plat == "linux" then + table.insert(debuggers, {"nnd", _run_nnd}) end -- get debugger from configuration |
