xchammer icon indicating copy to clipboard operation
xchammer copied to clipboard

Xcode -> Bazel Debugger integration may stop working under certain situations

Open jerrymarino opened this issue 5 years ago • 2 comments

Currently, we have a few ways to integrate with the debugger that may have fragility, especially in situations like migrating to Bazel. After running a Bazel build for the first time we generate a source map into the home directory.

Confirm if:

  • Xcode is able to load this source map consistently and try to mitigate it otherwise
  • Switching between Bazel and Xcode is working

jerrymarino avatar Feb 14 '20 01:02 jerrymarino

This requires a deeper investigation and manual testing to reproduce

The current workaround for this issue is:

  • validate that the correct .lldbinit files are inside of ~/: ~/.lldbinit and ~/.lldbinit-tulsiproj
  • if the correct LLDB init files aren't there then do a Bazel build
  • restart Xcode

jerrymarino avatar Feb 14 '20 01:02 jerrymarino

Hi @jerrymarino. We just finish our implementation with Bazel and XCHammer and we are unable to run the app on a simulator by Xcode. Xcode prompts the message "Could not attach". Does this behavior have any relationship with this issue?

fnazarios avatar May 20 '20 21:05 fnazarios