Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by smtabatabaie · Oct 10, 2011 at 05:58 PM · androiddebuggingconsole

debugging android

hi , I'm building a program on android , I'm new to unity and I'm trying just to debug and show some simple messages on the console . I have written Debug.Log("hello world"); on my update function and attached it to my object . I don't see any errors and think it should show the message but it doesn't work . I have checked the "development build" and "script debugging" on the build window, and I'm testing my program on my android device . any suggestions on how to make it work?
thanks

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lakeman · Mar 29, 2016 at 10:29 PM 0
Share

Try this one: https://www.assetstore.unity3d.com/#!/content/44935

3 Replies

· Add your reply
  • Sort: 
avatar image
9
Best Answer

Answer by Meltdown · Oct 10, 2011 at 06:08 PM

Use logcat profiler. Enable it under the player settings. Logcat is a part of adb.exe under the Android SDK \platform-tools folder.

To run it you can use the following commands...

adb logcat (begins logging)

adb logcat -c (clears the log)

adb logcat > yourlog.txt (dumps the log to a textfile called yourlog.txt)

EDIT : Remove the http:// Unity answers puts it there for some reason :/

adb logcat -help (help on all the command line options)

So before you start building your game, run adb logcat, you will see text being outputted to the command line window. Once you are all done, you can dump it to a file to read.

EDIT : An even better way to debug is using Eclipse. It's an IDE for Android, and gives you a grid-like GUI to view and filter your Android device logs. Read more about it at http://developer.android.com/sdk/installing/installing-adt.html It is far superior to logcat and well worth installing.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bernardfrancois · Oct 05, 2012 at 01:20 PM 1
Share

For those who upgraded an older Android SD$$anonymous$$: Note that the adb tool has been moved to the platform-tools folder within the android SD$$anonymous$$ installation folder (it used to be in the tools folder before).

avatar image
0

Answer by kolmich · Aug 22, 2012 at 05:10 AM

Hi, you can use the KGFDebug System to display your logs at runtime in a structured way on android and ios devices.

Checkout the screenshots and webdemo here: KGFDebug

You can buy it in the assetstore.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by MortePCAndVR · Jun 22, 2017 at 12:55 AM

Eclipse is now "eclipsed" by obsolesence, replaced by Android Studio. The Android Studio feature "logcat monitor" via adb works very well. Android Studio is a 1.9Gb download, (not including Android SDK/AVD/tools) but given the filtering options (filter by "unity"), it is a vast improvement on attempting a regex on adb logcat commandline output, and does not require you to have only one adb device connected or to disconnect the usb cable when you have done an adb tcpip 5555 adb connect xx.xx.xx.xx for Android unity debugging.

https://developer.android.com/studio/debug/am-logcat.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to debug Android apps that use Admob 1 Answer

Debug.Print not working 3 Answers

Update problem with Android Developers Console 0 Answers

Unity Debug Console - I want to input things during Runtime 1 Answer

throw exception override stacktrace double click log 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges