-
Notifications
You must be signed in to change notification settings - Fork 93
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
Stop shipping imports/plugin.go for debuggability by default #37
Comments
I'd like delve to support debugging gomacro too, but Importing third party packages at run-time is such an essential feature that if I have to choose between it and support to debug gomacro, I would decide for the former every time. |
I'm still new to go and just find my check that dynamic import can work without And I still want to find a way to have Especially those micro services are supposed to expose limited Go func/type to be scriptable (i.e. no dynamic imports). The only workaround to gain debuggability for such an app, I figured out so far, is to remove It's pitty tweaky and I wanna better solutions. |
All the solutions coming to my mind for your use case have significant drawbacks:
|
@cosmos72 thanks for your insights. lgo is definitely nogo for me, and I don't think the interpreted invocation of micro service funcs will create bottlenecks for me, as long as those funcs themselves run with compiled speed, so lua based or other jits are not attempting to me too. I think I'd stick with gomacro, the tweaky way to debug app can be tolerable in the near future, tho not perfect. |
Due to golang/go#23733 for Go 1.10~1.11, delve is unable to debug a Go app if "plugin" is imported, err like:
Debug will be normal if
imports/plugin.go
is removed. And dynamic imports work just fine per my run (OSX 10.11 Go1.11).As golang/go#23733 will seemingly only go into Go1.12 in the future, I would suggest stop shipping
imports/plugin.go
by default.The text was updated successfully, but these errors were encountered: