Giter Site home page Giter Site logo

Comments (3)

mfussenegger avatar mfussenegger commented on May 31, 2024

Can you share the vscode configuration to do that?

from nvim-dap-python.

PedroVSCoimbra avatar PedroVSCoimbra commented on May 31, 2024

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.

from nvim-dap-python.

mfussenegger avatar mfussenegger commented on May 31, 2024

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: mfussenegger/nvim-dap#586

from nvim-dap-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.