Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27787] Android: Add C/C++ debugging to SDK test app builds

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2020-11-30T19:10:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.3.0
ComponentsAndroid
Labelsandroid, debugging, ndk, sdk
ReporterJoshua Quick
AssigneeJoshua Quick
Created2020-03-03T02:39:33.000+0000
Updated2020-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

Comments

  1. Joshua Quick 2020-10-29

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12230
  2. Christopher Williams 2020-11-03

    merged to master for 9.3.0 target
  3. Satyam Sekhri 2020-11-04

    FR Passed
  4. Hans Knöchel 2020-11-22

    Heyja! Quick little regression to watch out for: TIMOB-28252 :-)

JSON Source