-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
debug envoy on MacOS with lldb/gdb #3826
Comments
Last I looked bazel does not preserve the dsym files for c++ code and without those files lldb cannot do source level debugging. I expect using Xcode would have the same problem, but I've not tried. There's a workaround suggested in bazelbuild/bazel#2537. I don't know if anyone's tried it, though I plan to give it a whirl the next time I want a debugger. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
I have this working. Hope this helps. https://medium.com/@dirao/debugging-envoyproxy-on-osx-a3ebe87dc916 |
^thanks, but doesn't work for latest version of babel (0.23) |
I want to debug envoy on MacOS, so I take following actions:
bazel build -c dbg --apple_generate_dsym //source/exe:envoy-static
lldb -p {pidOfEnvoy}
, set breakpointbreakpoint set --name onConnectionEvent
but the source code doesn't show when break point is hit. Is this supported on MacOS with bazel build? If supported, what option should I add to build phrase?
What's more, can I debug envoy with Xcode?
The text was updated successfully, but these errors were encountered: