GithubHelp home page GithubHelp logo

Comments (1)

pnasrat avatar pnasrat commented on June 9, 2024

It depends on who your audience is - my experience with docker is some users have a dislike of go style flags as non-getopty/traditional.

The command based approach would be more similar to the go tool itself, and subcommands could have flags. I think I've definitely feel -run being a boolean doesn't make much sense.

dlv --run=false --pid 10027
dlv --run=true --pid 10027

dlv attach -p

Note then attach could also work for a host:port

Personally whatever works for invocation - but I think I'd tend to lean towards subcommands and short flags or args. The use case I can think of are:

  • Load a program (with args) without executing - enter delve interface, run delve commands (set breakpoints, etc then execute within delve (either single step or just run/cont)
  • Load a program (with args) without executing and a core file for postmortem debugging
  • Attach to a running program (local)
  • Attach to a running program (remote)
  • Run with a program/attached to a program with scripted input (batch mode)
  • Build and load

from delve.

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.