Setting the --run_under
Bazel flag in run configurations breaks debugging in CLion
#5770
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
lang: c++
C++ rules integration
product: CLion
CLion plugin
topic: debugging
Issues related to debugging
type: bug
Description of the bug:
When the
--run_under
flag is set to some value in the "Bazel flags" section of a run configuration, the debugger fails to launch with a timeout error.This flag is commonly used to run targets with some specific environment variables, as the run configurations dialogue does not provide this functionality (#2042).
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
cc_binary
target in a BUILD.bazel file--run_under
flag in "Bazel flags" (for example:--run_under="DISPLAY=:1"
)Which Intellij IDE are you using? Please provide the specific version.
CLion 2023.2.2
What programming languages and tools are you using? Please provide specific versions.
C++17
What Bazel plugin version are you using?
2023.10.24.0.2-api-version-232
Have you found anything relevant by searching the web?
#863
#2042
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: