-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: enable native code debugging via LLDB #1551
Feature: enable native code debugging via LLDB #1551
Conversation
…bugging with lldb; Fixed some warnings;
Hey! Thanks for your work! I just wanted to run this locally on my machine and couldn't set any breakpoints in c++, did it maybe happen to you as well? I'm using Android Studio 4.1 |
@karol-bisztyga Maybe it's because something is not installed from Android tools. Also, check please the first video where you have to enable Java+Native (or Native) debugging. |
@karol-bisztyga ping me if you have any troubles with debugging in Android Studio, will try to help. |
I upgraded to studio 4.1.1, also have all those tools installed but the problem persists - I cannot set a breakpoint in c++ code, only java. I, obviously, went for dual debugger(native + java)(native alone doesn't work as well but it doesn't really make any difference as setting to native I still can set breakpoints in java code, they'd probably never be hit I guess). |
@karol-bisztyga I want to describe steps to do in order to archive the results on the video:
So you should run The video with steps. I know some steps are obvious and provided just to be clear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing Job! It was a problem that we could not solve for a long time.
Thank you!
Good job, sorry, I couldn't merge this as it sadly didn't work on my environment :( I hard reset android studio and still cannot get this running but 2 people from the team fired it up so it must be just a matter of my local problems. |
@karol-bisztyga Leave a reply here please when you will be able to fix the issue with your local environment. Could be pretty useful! |
@karol-bisztyga Hi,Did you solve the problem ?I also encountered the same problem |
I have solved!! |
Wix Goodness Squad Event
Description
To enable debug native (C/C++) code was added required changes to
Android.mk
file andbuild.gradle
s.Changes
Screenshots / GIFs
Live demo of native code debug setup
output.mp4
Live debugging demo session
Test code
To enable native code debugging please put
NATIVE_DEBUG_ON=TRUE
line to the end ofandroid/local.properties
file: