actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
429 stars 92 forks source link

stderr的捕获问题 #248

Closed ChrisCatCP closed 1 year ago

ChrisCatCP commented 1 year ago

在调试luapower的时候似乎捕获stderr是无效的 配置如下

        {
            "type":"lua",
            "request": "launch",
            "name": "Launch",
            "stopOnEntry": false,
            "stopOnThreadEntry": false,
            "luaVersion": "jit",
            "sourceCoding": "utf8",
            "console": "externalTerminal",
            "path": "${workspaceFolder}/?.lua;${workspaceFolder}/luapower/?.lua",
            "luaexe": "${workspaceFolder}/luapower/bin/mingw64/luajit.exe",
            "program": "${file}",
            "outputCapture": ["stderr","print"]
        }

以下为该配置调试的输出 image 下面为取消stderr捕获的输出 image

开启对stderr的捕获时 控制台stderr的输出确实消失了 但是却没有输出到调试控制台 print的捕获是正常的