D'oh, didn't realize that: 1) Setting the config=dbg environment variable as described in the docs is just the cmake way of doing things. One can alternatively set compilation_mode=dbg in bazel to set the DEBUG preprocessor macro and enable debug tracing, perhaps the tracing environment variables docs can be updated to reflect this alternative mode of enabling debug tracing? 2) Bazel propogates command line arguments and build options through to external dependencies.
Thanks for reading, leaving this post up in case it's helpful to anyone. On Monday, October 10, 2022 at 5:56:12 PM UTC-7 nicolo wrote: > I'm currently building grpc as an external http_archive dependency in a > bazel project. To debug grpc issues, I would like to build grpc with > special tracing enabled as described here > <https://github.com/grpc/grpc/blob/master/doc/environment_variables.md>. > This requires the config=dbg environment variable to be set when running > make. > > I'm using bazel, and working with grpc as an external repo. How might I > set this environment variable? > > To be specific, I'm currently loading a .bzl file with the following text: > > http_archive( > name = "com_github_grpc_grpc", > urls = [ > "https://github.com/grpc/grpc/archive/v1.27.3.tar.gz", > ] > ... > > My impression is that I can copy the repo locally and directly modify its > BUILD file, setting package specific environment variable with a bazel > action, but I'm hoping there's a simpler approach here. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1680f58a-2585-4dc0-a3d7-0fed979a45c3n%40googlegroups.com.