[TIMOB-27787] Android: Add C/C++ debugging to SDK test app builds
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-11-30T19:10:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.3.0 |
Components | Android |
Labels | android, debugging, ndk, sdk |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2020-03-03T02:39:33.000+0000 |
Updated | 2020-11-30T19:10:44.000+0000 |
Description
*Summary:*
We've never been able to debug the Titanium SDK's C/C++ code via Android Studio before. We should enable this for easier C/C++ development. Currently, we're forced to debug our C/C++ code old-school style via logging functions.
*Note:*
This only applies to the Titanium SDK's test "app" project. It does not apply to customer apps built with Titanium since the SDK library we ship is a "release" version and does not provide debug symbols.
*Implementation:*
Google documents that they only support C/C++ debugging if you use CMake. This would mean we would have to replace our makefile usage with CMake files instead. While using CMake seems like a waste since Android is our only target, this is what Google pushes and they consider the ndk-build makefile system as a "legacy" feature.
https://developer.android.com/studio/projects/add-native-code.html#download-ndk
PR (master): https://github.com/appcelerator/titanium_mobile/pull/12230
merged to master for 9.3.0 target
FR Passed
Heyja! Quick little regression to watch out for: TIMOB-28252 :-)