Code Monkey home page Code Monkey logo

Comments (11)

wulling1024 avatar wulling1024 commented on June 23, 2024

@aarzilli master, can you help to check it?

from delve.

aarzilli avatar aarzilli commented on June 23, 2024

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.

wulling1024 avatar wulling1024 commented on June 23, 2024

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
image

Recently I did an upgrade to the macos version, I don’t know if it’s relevant.

from delve.

wulling1024 avatar wulling1024 commented on June 23, 2024

@aarzilli The program will also terminate when a breakpoint is encountered

from delve.

aarzilli avatar aarzilli commented on June 23, 2024

But this is a completely different error from the one on the first post.

from delve.

wulling1024 avatar wulling1024 commented on June 23, 2024

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.

wulling1024 avatar wulling1024 commented on June 23, 2024

I tried lowering the version to '1.8.3', but the problem still persists

from delve.

aarzilli avatar aarzilli commented on June 23, 2024

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.

wulling1024 avatar wulling1024 commented on June 23, 2024

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..

image

from delve.

aarzilli avatar aarzilli commented on June 23, 2024

This looks similar to #3538, #3599, #3554, #3519.

from delve.

wulling1024 avatar wulling1024 commented on June 23, 2024

hi @aarzilli. thank you very much, my problem is solved. respect

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.