nvim-dap-python
nvim-dap-python copied to clipboard
Run django and celery.
Hello guys. Is there a way to launch two processes at once? In this case Django server and the celery application. I've seen it been done in vscode but could not configure my nvim to work that way.
Can you share the vscode configuration to do that?
Sure!
{
// 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: Django",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/petrofoam/manage.py",
"args": [
"runserver"
],
"django": true,
"cwd": "${workspaceRoot}/petrofoam",
"justMyCode": false
},
{
"name": "Celery",
"type": "python",
"request": "launch",
"cwd": "${workspaceFolder}/petrofoam",
"program": "${workspaceFolder}/env/bin/celery",
// "connect": {
// "host": "localhost",
// "port": 6379
// },
"args": [
"-A",
"petrofoam",
"worker",
"-l",
"debug",
"-B"
],
"django": true,
"env": {
"DJANGO_SETTINGS_MODULE": "petrofoam.settings",
},
"justMyCode": false
}
]
}
It does not seem to be a very complex code. But vscode seems to do a nice of using to terminals to launch them.
I see. I thought they'd do something special but this is just about multi-session support. There's an issue in nvim-dap for that: https://github.com/mfussenegger/nvim-dap/issues/586