Comments (11)
@aarzilli master, can you help to check it?
from delve.
Did you just run the program under delve and did nothing else? Can you reproduce this using the command line UI of delve (without dap)?
from delve.
Did you just run the program under delve and did nothing else?
yes. I started debugging using vscode. My configuration information is as follows:
"go.delveConfig": {
"dlvFlags": [
"--check-go-version=false",
],
"showLog": true,
"debugAdapter": "dlv-dap",
"apiVersion": 2
},
Can you reproduce this using the command line UI of delve (without dap)
can reproduce.
start command: dlv exec --check-go-version=false --api-version=2 ./main
Recently I did an upgrade to the macos version, I don’t know if it’s relevant.
from delve.
@aarzilli The program will also terminate when a breakpoint is encountered
from delve.
But this is a completely different error from the one on the first post.
from delve.
maybe it's just the same as displaying information.
the first post it is sent is the 'vscode debug console'.
dlv cmd is just a short message.
The key to the current two is that the program is terminated when a breakpoint is encountered.
from delve.
I tried lowering the version to '1.8.3', but the problem still persists
from delve.
No in the first screenshot the target program is crashing, in the second one debugserver isn't working. Also:
The key to the current two is that the program is terminated when a breakpoint is encountered.
did you set a breakpoint in the second example? I just see continue
in the screenshot.
from delve.
I followed this process again:
1、start command: dlv debug --check-go-version=false app/main.go
2、use continue
to startup project. because this is a Gin http service
3、add breakpoint
4、use postman to request http://127.0.0.1:8888/api/health_check/
5、continue
we got error and the program is crashing..
from delve.
This looks similar to #3538, #3599, #3554, #3519.
from delve.
hi @aarzilli. thank you very much, my problem is solved. respect
from delve.
Related Issues (20)
- RR chaos mode HOT 6
- upstream "cmd/compile: move runtime.itab to internal/abi.ITab" causes Delve to no longer print variables HOT 4
- Printing a slice at non-0 base shows wrong "more" HOT 4
- Delve unable to launch process in Neovim or Command Line on M3 Apple Silicon HOT 3
- Debug Excessively Slow Stepping Through Code HOT 11
- Not compiling on raspberry pi 3b HOT 1
- Failed to install latest dlv (1.22.1) on Ubuntu20.04 amd64 HOT 3
- eval: support arbitrary map types? HOT 2
- Panic when attaching to program executed via `go run` HOT 4
- "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
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.