Tuesday 23 May 2017

Eclipse Che: bash: gdb: command not found

Che seems promising but is anyone using it or does it work for anyone at all?

Once in a while I try to make Che debugger work with golang or nodejs. I do belive Che is the way for devs using docker, I just need a workflow.

I run Che in docker described here: https://eclipse.org/che/docs/setup/getting-started/index.html#syntax

I am unable to get delve debugger to work so today I tried gdb.

Just using the go stack(web-go-simple) and edited the debug command:

go build -gcflags "-N -l" -o gdb_sandbox main.go

gdb gdb_sandbox

It gives bash: gdb: command not found

If I edit the run / Debug Configuration it complains about cannot connect to localhost:8080. I set the port to 8080 and binary path to:

${current.project.path}/web-go-simple/gdb_sandbox

I just want to debug go - anyone done this?

I also tried using nodejs: https://eclipse.org/che/docs/ide/debug/#nodejs This also can not connect.



via Chris G.

No comments:

Post a Comment