Giter Site home page Giter Site logo

Comments (6)

pittcat avatar pittcat commented on May 31, 2024

It works well after i add the snippet into my config

table.insert(dap.configurations.python, {
  type = 'python',
  request = 'launch',
  name = 'Launch file in externalTerminal',
  program = '${file}',   
  console = 'externalTerminal';
})

I don't know if there is a better way .

from nvim-dap-python.

mfussenegger avatar mfussenegger commented on May 31, 2024

You could also set the option in the setup call:

require('dap-python').setup(debug_py_python_path, { console = 'externalTerminal' })

from nvim-dap-python.

pittcat avatar pittcat commented on May 31, 2024

This solution can work well . Thank you for your reply and for your efforts with nvim-dap .

from nvim-dap-python.

jakkarn avatar jakkarn commented on May 31, 2024

Mind if I ask a follow up on this issue? I tried to do this but I get the error that Requested external terminal, but none configured. Fallback to integratedTerminal. how do I configure it to open my standard terminal as an external terminal?

from nvim-dap-python.

jakkarn avatar jakkarn commented on May 31, 2024

I've tried adding these to my dap.configurations.python

console = "externalTerminal";
terminal = "gnome-terminal";

but I still get the error.

from nvim-dap-python.

mfussenegger avatar mfussenegger commented on May 31, 2024

Mind if I ask a follow up on this issue? I tried to do this but I get the error that Requested external terminal, but none configured. Fallback to integratedTerminal. how do I configure it to open my standard terminal as an external terminal?

See :help dap-terminal

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.