0
点赞
收藏
分享

微信扫一扫

TreeSelect增加可筛选功能

yongxinz 2024-07-28 阅读 24

1、调试环境配置

一、安装python环境管理器

其中要先在vscode选择对应的python环境,最方便的是按照环境管理器后从中选择。其中在【externsions】里面安装python即可。
如下:
在这里插入图片描述

二、编写launch.json文件

其中如下:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: FastAPI",
            "type": "python",
            "request": "launch",
            "module": "uvicorn",
            "args": [
                "main:app",
                "--reload",
                "--host",
                "0.0.0.0",
                "--port",
                "8025"
            ],
            "jinja": true,
            "justMyCode": true
        }
    ]
}

三、点击对应文件,后进行在vscode右下角选择对应的虚拟环境。然后即可按F5启动调试。

在这里插入图片描述

2、进行连接远程工程开发

一、安装插件ssh remote

在这里插入图片描述

二、进行配置想远程的主机信息

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

3、进行杀死多线程的进程

其中killall -9 进程名字
kill PID
例如uvicorn其要用kill进行杀死。使用killall -9 杀不死的。

举报

相关推荐

0 条评论