WTOAAM =============== 风力发电机组运行分析算法模型 Wind turbine operation analysis algorithm model # django auth http://127.0.0.1/admin 账号 admin 密码 root.123456 # 附加进程调试 ## 安装debugpy pip install --upgrade debugpy ## 运行程序命令 示例:python -m debugpy --listen localhost:5678 --wait-for-client e:/WorkSpace/SourceCode/WTOAAM/wtoaamapi/apps/business/main.py ## 附加进程 配置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: Remote Attach", // 远程调试 "type":"debugpy", "request": "attach", "connect": { "host": "localhost", "port": 5678 }, "pathMappings": [ { "localRoot": "${workspaceFolder}", "remoteRoot": "." } ], "justMyCode": false } ] } 打开要调试的源代码文件,在vscode搜索框选择"开始调试 debug","Python: Remote Attach"即lanuch.json文件中configurations[0].name节点值即可。 # 自宿主服务 自定义包appService,同时支持daemon、windows服务 ## 依赖包 pip install python-daemon pypiwin32