-
Notifications
You must be signed in to change notification settings - Fork 123
Swift breakpoints do not work with bazel sandboxing #15
Comments
I've got the same problem using the latest version of bazel. |
bump. Any update on this @dmishe ? |
Sorry, no updates so far. |
Are there any plans to support debugging in Xcode for Swift and Objc? |
ObjC debugging should work with sandboxing but Swift debugging currently does not due to Swift limitations which may or may not be fixed in Swift 5. For now you can add |
Have anyone figure this out? I been using bazel 2.0 and latest tulsi. Current project is ios (swift and objc) |
I got this working with Bazel 2.2.0 and Tulsi 0.20200219.88 by adding the two follow flags:
Into build options |
AFAIK you should just need |
Oddly enough I removed all my swift other compile flags and Tulsi breakpoints worked again, not sure what happened there |
Oddly enough I can see this flag on by default on Tulsi 0.20200219.88. https://gist.github.com/tinder-maxwellelliott/ee477ca31247225138e1c7e9678dd046 Now it appears like the debugger can stop working and then start working again |
Hmm, Tulsi does use an |
They are looking stable again |
I coudnt get breakpoints to work in a swift+objc project with the recommended approach. I have used I could verify that the option was being picked up because I could seeing in the build logs:
Finally I got it working by also adding |
Thanks for submitting this issue but this tool is being deprecated. Please checkout rules_xcodeproj for a more complete and maintained Xcode integration. |
I generated a simple ios project with tulsi. I have a single
main.swift
file, and put a breakpoint in it. The debugger doesn't stop on this breakpoint, but the debugger was attached correctly because I could pause the app.The dsym patcher is invoked with:
Inspecting the dsym, it looks like bazel is using a different sandboxed path for swift by default:
I added the flag
--strategy=SwiftCompile=standalone
to the compile options, and then the patcher seems to correctly replace the path, which makes the breakpoint work.The text was updated successfully, but these errors were encountered: