在VS代码中设置UWSGI调试

时间:2019-04-10 05:19:13

标签: python-3.x visual-studio-code uwsgi vscode-debugger

我正在尝试使用VS代码调试本地uwsgi。不幸的是,我无法将python解释器附加到我的Visual Code调试中:

VSCode launch.json配置:

foo[1,2] %>% unnest %>% names %>% .[11] == "one"

和uwsgi配置:

{
        "type": "python",
        "request": "attach",
        "name": "Launch uWSGI",
        "port": 9090,
        "host": "127.0.0.1",
        "pathMappings": [
            {
                "localRoot": "${workspaceFolder}",  // You may also manually specify the directory containing your source code.
                "remoteRoot": "${workspaceFolder}" // Linux example; adjust as necessary for your OS and situation.
            }
        ]
    }

然后我在启用了本地功能的venv中运行uwsgi:

[development]
virtualenv = %(chdir)/../env/env1/
http = 127.0.0.1:9090

具有以下输出:

uwsgi --ini conf.d/uwsgi/dev.ini

0 个答案:

没有答案