Comments (5)
We had discussed this internally but holidays, etc. Anyway, the "plugin" uses lldb, and relies on Xcode to set breakpoints based on file line numbers. All of that is handled by lldb and whatever the Kotlin compiler writes out for lldb. That's a long way to say, if some breakpoints work and others don't, reinstalling the plugin won't do much. When you update Xcode, you need to refresh the uuid, but if some breakpoints are working, that shouldn't be an issue.
It looks like you're using Xcode 14.2 and judging by the date, I assume you're on Kotlin 1.7.x. 1.7.x only supports Xcode 13.x. We've run into issues with cinterop and Xcode 14.x on Kotlin 1.7.20. I don't know if that's contributing, but installing 13.4.1 and clean building everything (including the kotlin build dir) would be something to try. The Kotlin compiler uses the Xcode build tools, so it's important to stay with supported versions.
Outside of that, it looks like all of your code is built locally, but that's another potential cause of this. lldb writes absolute paths of source files in debug binaries, so if your binary is built on CI, or built locally but you're pointing to source in a different folder for some reason, breakpoints won't work. That's not a Kotlin-specific issue. Swift, etc, same.
Outside of those, there's not much we can do without a repro. As you've stated, this works for KaMP Kit and other projects we use it for.
from xcode-kotlin.
Ah okay thanks for detailed response @kpgalligan! Looks like this issue has coincided with an upgrade to Xcode 14.2 then. Sadly we're unable to revert to an older version of Xcode right now due to some Swift 5.7 language features we're leveraging.
Is it safe to assume that upgrading to Kotlin 1.8 would play friendly with Xcode 14.x?
from xcode-kotlin.
Well, "officially" 14.1, but I'm guessing it'll be generally OK with 14.2.
Source: https://kotlinlang.org/docs/whatsnew18.html#kotlin-native
from xcode-kotlin.
Closing until I'm able to test using Kotlin 1.8, thanks for the information!
from xcode-kotlin.
I have encountered the same problem, Xcode 14.2,mac M1,koltion 1.8.21, there is further progress on this problem, has it been solved? If possible, could you share your experience? Thanks a million
from xcode-kotlin.
Related Issues (20)
- Can set breakpoints in Xcode 15 , but unable to view variable content HOT 4
- Breakpoints became disable when we run the app HOT 4
- Support for multiproject Kotlin builds HOT 3
- Amend Sync paragraph with OS update case HOT 1
- How does the functionality of this plugin differ from the official KMM plugin? HOT 1
- Support tvos, watchos and macos
- Add "Building" and "Contributing" sections to the README
- Do not uninstall LLDB init when reinstalling
- Kotlin Code Completion in Xcode HOT 2
- xcode-kotlin install crash (XCode 13.4) HOT 7
- Step into Kotlin from Swift/Objc
- Can set breakpoints in release build in Xcode, but debug build doesn't see Kotlin files at all HOT 3
- Look at K/N lldb scripts to see if xcode-kotlin needs an update HOT 1
- Is this project alive? HOT 1
- Kotlin 1.9.0-RC has a significantly updated lldb script HOT 3
- Xcode 15 beta has issues HOT 5
- Xcode 15 beta crashes on launch if Xcode-kotlin is installed HOT 18
- Xcode crashes on launch with xcode-kotlin installed after updating to macOS 13.5 HOT 3
- Build failure against gradle 8.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcode-kotlin.