Comments (1)
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)
- Feature req: `list` more lines HOT 5
- Feature req: color for the input prompt
- Feature req: list / edit current args HOT 3
- Hard to repro bug: screen locks sometimes HOT 8
- closure captures
- Install failing on arm64 M1 machine HOT 2
- Feature req 'print' to a file or pager HOT 4
- Breakpoint not hit when debugging in a docker container built with --platform linux/amd64 ("input/output error") HOT 2
- Delve is incompatible with musl system loader
- Problem when debugging code using golang.org/x/sys/windows HOT 3
- `DELVE_EDITOR` should support extra arguments HOT 1
- ARM64 call method which relative offset is out of range of CALL instruction. HOT 8
- Support call injection for functions that have type parameters HOT 2
- Add installation note that build requires CGO
- golang cannot debug HOT 2
- [BUG]Unable to perform single-step debugging HOT 11
- panic incorrectly attributed to wrong line
- "not an executable file" when exec an exe file which has been modified by UpdateResourceA API HOT 5
- "empty OP stack" for values running `dlv test` HOT 8
- Breakpoint ignored due to "protocol error E09 during set breakpoint for packet" error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delve.