Discussion:
How to use LLDBFrontend?
Volodymyr B
2018-01-05 20:55:52 UTC
Permalink
My problem that Android studio is pretty slow for debugging.

I'm writing tests with googletest from NDK to test my functionality.

I can install my libraries and executable file. then launch it without any
problems using add shell.

But at some point got crash which is appearing in tests but not in app.

So I was able to launch lldb-server on device and connect with standard
macOS lldb client (that was surprisingly good experience).
But turns-out that breakpoints does not work. probably because different
versions or so.

now my problem is connect with LLDBFrontend

help is showing only one line!

Usage: <portnum> | <--version>

LLDBFrontend --version

3.9.0

always getting this error

E0105 20:55:02.972702 3072099136 ProtobufClient.cpp:161] ERROR connecting 3
No such process


Any help or directions please.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/97c1e808-2ffa-429c-b828-11ec9cf3a9e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alex Cohn
2018-01-07 11:50:25 UTC
Permalink
Please try this trick (https://youtrack.jetbrains.com/issue/CPP-11021):

In */etc/hosts*, there may be a line

::1 localhost

This could cause problems with LLDB, not only for Android clients. Use the
following format instead:

127.0.0.1 localhost

BR,
Alex
Post by Volodymyr B
My problem that Android studio is pretty slow for debugging.
I'm writing tests with googletest from NDK to test my functionality.
I can install my libraries and executable file. then launch it without any
problems using add shell.
But at some point got crash which is appearing in tests but not in app.
So I was able to launch lldb-server on device and connect with standard
macOS lldb client (that was surprisingly good experience).
But turns-out that breakpoints does not work. probably because different
versions or so.
now my problem is connect with LLDBFrontend
help is showing only one line!
Usage: <portnum> | <--version>
LLDBFrontend --version
3.9.0
always getting this error
E0105 20:55:02.972702 3072099136 ProtobufClient.cpp:161] ERROR connecting
3 No such process
Any help or directions please.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/8ffdeb36-46a0-4ee9-b1ef-18c0728f6972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Volodymyr B
2018-01-07 17:25:00 UTC
Permalink
Looks like it’s progress

Next I got
LLDBFrontend 1234
Connection established.
error: handshake with client failed
lldb-server exiting...


Best regards,
Volodymyr Boichentsov
In /etc/hosts, there may be a line
::1 localhost
127.0.0.1 localhost
BR,
Alex
My problem that Android studio is pretty slow for debugging.
I'm writing tests with googletest from NDK to test my functionality.
I can install my libraries and executable file. then launch it without any problems using add shell.
But at some point got crash which is appearing in tests but not in app.
So I was able to launch lldb-server on device and connect with standard macOS lldb client (that was surprisingly good experience).
But turns-out that breakpoints does not work. probably because different versions or so.
now my problem is connect with LLDBFrontend
help is showing only one line!
Usage: <portnum> | <--version>
LLDBFrontend --version
3.9.0
always getting this error
E0105 20:55:02.972702 3072099136 ProtobufClient.cpp:161] ERROR connecting 3 No such process
Any help or directions please.
--
You received this message because you are subscribed to a topic in the Google Groups "android-ndk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-ndk/y0m2Wqec4kY/unsubscribe <https://groups.google.com/d/topic/android-ndk/y0m2Wqec4kY/unsubscribe>.
Visit this group at https://groups.google.com/group/android-ndk <https://groups.google.com/group/android-ndk>.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/8ffdeb36-46a0-4ee9-b1ef-18c0728f6972%40googlegroups.com <https://groups.google.com/d/msgid/android-ndk/8ffdeb36-46a0-4ee9-b1ef-18c0728f6972%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/98503046-7F40-4506-91A4-E1103333BAFA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Kenneth Geisshirt
2018-01-07 17:29:52 UTC
Permalink
Have you tried to disable code converage?
Post by Volodymyr B
Looks like it’s progress
Next I got
LLDBFrontend 1234
Connection established.
error: handshake with client failed
lldb-server exiting...
Best regards,
Volodymyr Boichentsov
In */etc/hosts*, there may be a line
::1 localhost
This could cause problems with LLDB, not only for Android clients. Use the
127.0.0.1 localhost
BR,
Alex
Post by Volodymyr B
My problem that Android studio is pretty slow for debugging.
I'm writing tests with googletest from NDK to test my functionality.
I can install my libraries and executable file. then launch it without
any problems using add shell.
But at some point got crash which is appearing in tests but not in app.
So I was able to launch lldb-server on device and connect with standard
macOS lldb client (that was surprisingly good experience).
But turns-out that breakpoints does not work. probably because different versions or so.
now my problem is connect with LLDBFrontend
help is showing only one line!
Usage: <portnum> | <--version>
LLDBFrontend --version
3.9.0
always getting this error
E0105 20:55:02.972702 3072099136 ProtobufClient.cpp:161] ERROR connecting
3 No such process
Any help or directions please.
--
You received this message because you are subscribed to a topic in the
Google Groups "android-ndk" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/android-ndk/y0m2Wqec4kY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/8ffdeb36-46a0-4ee9-b1ef-18c0728f6972%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/8ffdeb36-46a0-4ee9-b1ef-18c0728f6972%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/98503046-7F40-4506-91A4-E1103333BAFA%40gmail.com
<https://groups.google.com/d/msgid/android-ndk/98503046-7F40-4506-91A4-E1103333BAFA%40gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Kenneth Geisshirt, M.Sc., Ph.D.
MajbÞl Allé 18, DK-2770 Kastrup, +45 60 62 71 82
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFLzvupBgKt%2B_3NOCbMBw7LW6a9X4%3DFS%2B2Q9jrpVPGd03pRrow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...