Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I debug this program in IDE goland #12

Open
Zuckonit opened this issue Jul 28, 2019 · 8 comments
Open

how can I debug this program in IDE goland #12

Zuckonit opened this issue Jul 28, 2019 · 8 comments

Comments

@Zuckonit
Copy link

how can I debug this program in IDE goland

@siddharthlatest
Copy link
Member

@Zuckonit What issue are you seeing while debugging it?

@Zuckonit
Copy link
Author

Zuckonit commented Aug 6, 2019

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
Copy link
Author

would you please give any help, thanks very much

@harsh-2711
Copy link

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

@Zuckonit
Copy link
Author

Zuckonit commented Sep 29, 2019

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.

@harsh-2711
Copy link

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.

@Zuckonit
Copy link
Author

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

@harsh-2711
Copy link

Sure. Take a look

Screenshot 2019-10-01 at 1 15 24 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants