reactivesearch-api icon indicating copy to clipboard operation
reactivesearch-api copied to clipboard

how can I debug this program in IDE goland

Open Zuckonit opened this issue 6 years ago • 8 comments

how can I debug this program in IDE goland

Zuckonit avatar Jul 28 '19 16:07 Zuckonit

@Zuckonit What issue are you seeing while debugging it?

siddharthlatest avatar Aug 01 '19 16:08 siddharthlatest

GOROOT=/usr/local/Cellar/go/1.11.4/libexec #gosetup
GOPATH=/Users/testGOROOT=/usr/local/Cellar/go/1.11.4/libexec #gosetup
GOPATH=/Users/test/workspace/go #gosetup
/usr/local/Cellar/go/1.11.4/libexec/bin/go build -o /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc -gcflags "all=-N -l" github.com/appbaseio/arc #gosetup
/Users/testGOROOT=/usr/local/Cellar/go/1.11.4/libexec #gosetup
GOPATH=/Users/test/workspace/go #gosetup
/usr/local/Cellar/go/1.11.4/libexec/bin/go build -o /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc -gcflags "all=-N -l" github.com/appbaseio/arc #gosetup
/Users/test/workspace/go/bin/dlv --listen=localhost:60879 --headless=true --api-version=2 exec /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc -- #gosetup
API server listening at: 127.0.0.1:60879
debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-1001.0.13.3
 for x86_64.
Got a connection, launched process /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc (pid = 32250).
Exiting.
could not launch process: decoding dwarf section info at offset 0x0: too short

Debugger finished with exit code 1



/workspace/go/bin/dlv --listen=localhost:60879 --headless=true --api-version=2 exec /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc -- #gosetup
API server listening at: 127.0.0.1:60879
debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-1001.0.13.3
 for x86_64.
Got a connection, launched process /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc (pid = 32250).
Exiting.
could not launch process: decoding dwarf section info at offset 0x0: too short

Debugger finished with exit code 1

/workspace/go #gosetup
/usr/local/Cellar/go/1.11.4/libexec/bin/go build -o /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc -gcflags "all=-N -l" github.com/appbaseio/arc #gosetup
/Users/test/workspace/go/bin/dlv --listen=localhost:60879 --headless=true --api-version=2 exec /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc -- #gosetup
API server listening at: 127.0.0.1:60879
debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-1001.0.13.3
 for x86_64.
Got a connection, launched process /private/var/folders/ff/xb8nm7d571940s44988h063h0000gp/T/___go_build_github_com_appbaseio_arc (pid = 32250).
Exiting.
could not launch process: decoding dwarf section info at offset 0x0: too short

Debugger finished with exit code 1

Zuckonit avatar Aug 06 '19 03:08 Zuckonit

would you please give any help, thanks very much

Zuckonit avatar Aug 14 '19 17:08 Zuckonit

@Zuckonit Have you used docker-compose up command before debugging?

harsh-2711 avatar Sep 25 '19 13:09 harsh-2711

no, but I start an elasticsearch instance locally (not by docker). I am not sure how to debug arc, cause the arc plugin as built as so. actually, in old arc version (no plugin system), we can easily debug it with goland.

Zuckonit avatar Sep 29 '19 01:09 Zuckonit

You can debug it now also. Just connect the Arc project with your ES cluster and then open it on your GoLand. You can check the functions by running the tests written separately.

harsh-2711 avatar Sep 29 '19 08:09 harsh-2711

would you mind to share your build configuration of goland? my configuration even is not runnable image

Zuckonit avatar Sep 30 '19 09:09 Zuckonit

Sure. Take a look

Screenshot 2019-10-01 at 1 15 24 AM

harsh-2711 avatar Sep 30 '19 19:09 harsh-2711