oxequa / realize

Realize is the #1 Golang Task Runner which enhance your workflow by automating the most common tasks and using the best performing Golang live reloading.
GNU General Public License v3.0
4.46k stars 231 forks source link

Realize with Delve #196

Open JorgeGarciaIrazabal opened 6 years ago

JorgeGarciaIrazabal commented 6 years ago

Is there a way to configure the realize.yaml to run with Delve debugger? (more info about the debugger here )

I tried this in the realize.yaml:

 commands:
    run:
      method: dlv debug -l=localhost:35173 --headless=true --api-version=2 --backend=default
      status: true

but it didn't work throwing this error: project not found

Nicolab commented 6 years ago

Did you manage to work with Realize and Delve?

JorgeGarciaIrazabal commented 6 years ago

No, I had to create another server in a different Port to be able to debug. But of course without the reload feature :(

Nicolab commented 6 years ago

Ok thanks for your reply.

Realize doesn't works with Go mod (Go@v1.11). Waiting to see if it evolves, I'll do with modd or reflex.

venkz commented 5 years ago

No, I had to create another server in a different Port to be able to debug. But of course without the reload feature :(

Hey can you help me understand what you meant by create another server? In realize.yml? Would be helpful if you can throw some light on this.

I am trying to do docker-compose up debug and in the command section of this service, i have "realize start -n='app-debug' "

I get this error project not found

mfykmn commented 5 years ago

Hey! I was success when I built a delve inside Dockerfile.

You should do this

Remember to security_opt option in docker-compose.yml.

docker-compose.yml

security_opt:
      - seccomp:unconfined
k1ng440 commented 4 years ago

DLV is leaving app behind on restart :(