GithubHelp home page GithubHelp logo

Comments (6)

shedyfreak avatar shedyfreak commented on July 17, 2024

Hey, I have no idea how the Goland debugger is running but this how I do it
I open terminal and I run this command :
dlv debug --headless --api-version=2 --listen=127.0.0.1:43000 .
to put it simply this will start a debugging server
Now, where you should do some work by yourself is here :
since I use VS code I have a config file called launch.json
and here how it looks like

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Remote",
            "type": "go",
            "request": "attach",
            "mode": "remote",
            "port": 43000,
            "host": "127.0.0.1",
            "showLog": true,
        }
    ]
}

as you might have seen here, VS code becomes a client to the dlv debugger run previously on terminal,
when I run debug on vs code it get it "attach" directly to the remote terminal debugger and starts debugging
you need now to find the equivalend of this config in Goland, let me know if you're still struggeling

from huh.

nervo avatar nervo commented on July 17, 2024

As far as i can see, this breaks between v0.2.3 and v0.3.0 :(

Edit: 'got it ! This was introduced with #95 by @maaslalani

Let see if i can spot where the problem is...

from huh.

shedyfreak avatar shedyfreak commented on July 17, 2024

@nervo Hmmm I think I m missing something here, so in Goland you don't need to run dlv and attach, this is done by Goland debugger itself ?

from huh.

nervo avatar nervo commented on July 17, 2024

@shedyfreak sorry, but are you sure you're on the right issue ? This one is about rendering problems in goland, i'm not convinced this could be related to delve :)

from huh.

shedyfreak avatar shedyfreak commented on July 17, 2024

@nervo hmm sorry, I might have misunderstood the issue, but it seems like the issue couldn't be from Goland terminal since, as mentionned in the description of the bug, works fine.

He said that he has an issue when debugging which ( on the Debug Console aka Console as he refers to it) which made me assume something is wrong between running the debugger and attaching Goland debugger client to the debugger server, which made me question how debugging in Bubbletea apps in Goland.
please don't hesitate to correct me if you think I got it wrong.

from huh.

flyinprogrammer avatar flyinprogrammer commented on July 17, 2024

Hey @shedyfreak thanks for trying to help! This issue is an issue with Goland both with its Run and Debug console.

Hmmm I think I m missing something here, so in Goland you don't need to run dlv and attach, this is done by Goland debugger itself ?

Goland auto-magically creates dlv cli commands and executes them, see an example in this screenshot:

Screenshot 2024-06-06 at 9 27 26 AM

(This terminal is interactive, but all the text was generated by Goland or the CLI tools it calls on your behalf.)

@nervo you're brilliant dude! Sorry for being so uneducated about WindowSizeMsgs or how to further debug this on my own. I sincerely appreciate you and your time in looking into this further!

from huh.

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.