Comments (5)
@ajpen if you want to debug a non-main package (that has tests) you can use dlv test <pkg>
. If that doesn't work please submit a new issue.
from delve.
Some more context around this would also be nice. What do you mean by "debugging of tests"? Are you in a test dir and trying to compile and run all of your tests? dlv -run
will compile and run based off of the current dir. It's using go build
under the hood, so anything that wouldn't normally be compiled, like tests, get ignored.
If you want to debug tests try go test -c; dlv ./foo.test
.
from delve.
Going to close this issue out. If the above suggestions do not solve this, please feel free to reopen with more context. Thanks.
from delve.
I just came across this issue when trying to debug a 'non-main' package with dlv debug
. That's likely the cause.
from delve.
@derekparker Good to hear from you Derek. I just placed that comment up to give some context for anyone else that might run into it and find themselves here. Thanks
from delve.
Related Issues (20)
- "recovered panic ... " strictly when debugging after unmarshaling proto struct pb HOT 3
- Projects needing CGO_ENABLED=1 cause "could not find rodata struct member" on M1 MacOS HOT 15
- `rr` parsing broken by recent rr changes
- Feature request: dump byte slice memory contents into file
- add note about DOCKER_DEFAULT_PLATFORM while debugging on mac HOT 1
- In debug mode, the process does not stop at a breakpoint HOT 8
- macOS Linking error running with `dlv debug` HOT 1
- Proposal: support outputting Flame Graph for heap object references to troubleshoot memory leaks HOT 2
- Issue running debugger on a MAC M2 using vscode/devcontainer against an linux amd64 docker/rosseeta container. HOT 1
- Various RR backend failures with RR 5.7.0 and Delve 1.22.1 HOT 2
- [BUG] `rev` command not available HOT 2
- Can't connect VSCode to dlv server properly HOT 23
- panic when delve process is stopped HOT 1
- support for Termux debugger with the Android
- How build arm version HOT 1
- Support `dlv types` from DAP (the same way `types` is supported in the command line `dlv` REPL)
- polish go1.23 range-over-func UX HOT 1
- Does delve ignore // line instructions during debug HOT 1
- Breakpoints do not work in packages with a TestMain(*testing.M) function HOT 1
- Unable to print a package string const value during a breakpoint HOT 1
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.