Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
10
Question by swifter14 · Jun 22, 2017 at 04:39 AM · androiddebug.loglogcat

How to read Debug.Log when using Android?

I just tried my app on Android and it suddenly doesn't work well (on Windows it works fine). Is there a way to see unity console's errors and debug.log messages- when I run the device on Android?(I use development mode and script Debugging).

I connected adb to the device, and can also use logcat and filter to "unity", but it still shows a crazy log.

All I want to see is a clean log that shows errors and my Debug.Log messages which I usually can see easy and clear on the Unity Console on Unity on Windows.

Comment
Add comment
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

3 Replies

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

Answer by Umresh · Jun 22, 2017 at 04:59 AM

If you have android studio you can use it's logcat. Or in cmd you can run this command

adb logcat -s Unity PackageManager dalvikvm DEBUG

Comment
Add comment · Show 3 · 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 sosh · Mar 15, 2018 at 02:16 PM 0
Share

LogCat doesn't seem to capture Debug.Log messages.

avatar image w0lfi · Nov 16, 2020 at 12:07 PM 2
Share

For everyone looking now here: There is also a Logcat Plugin available in the Package $$anonymous$$anager. You can read the Android Logs directly in your Unity Editor. Edit: https://docs.unity3d.com/Packages/com.unity.mobile.android-logcat@1.2/manual/index.html

avatar image trakevital · Mar 09, 2021 at 01:38 PM 0
Share

If 'adb' doesn't work try this: https://stackoverflow.com/questions/20564514/adb-is-not-recognized-as-an-internal-or-external-command-operable-program-or

avatar image
18

Answer by jolasman · Mar 14, 2018 at 08:01 PM

I have a solution in my new video :)

https://youtu.be/55rkbsjhA3U

Comment
Add comment · Show 4 · 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 MrZebbi · May 11, 2018 at 11:54 AM 1
Share

jolsman you saved my day , thank you ! , your video works for me

avatar image KesterEvers · Dec 10, 2018 at 10:52 AM 0
Share

I watched your video, but monitor.bat cannot be opened. "'lib\monitor-location' couldn't be found. ..." Any ideas how to fix?

avatar image jolasman KesterEvers · Dec 10, 2018 at 11:20 AM 0
Share

hi :) had you installed the Android SD$$anonymous$$ correctly? Did you install it through the Android Studio installation? Are you in the correct path for your SD$$anonymous$$? I have another possible solution for the logs by printing the logs into a file. You can see the tutorial here :link text

I hope this helps you :)

avatar image sergiobd KesterEvers · Jun 01, 2020 at 01:20 AM 0
Share

Just in case, I had the same problem lib\monitor-location not found, and this is how I solved it:

  1. First, because I have several Unity versions installed in my PC, each one with its own Android tool installs, I ran adb in the specific folder of my Unity Version (e.g. C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools

  2. The monitor.bat spits and error in my case, complaining that lib\monitor-location cannot be found, so I navigated to C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\lib\monitor-x86_64 and ran monitor.exe from there.

  3. That didn't work either, complaining that there was no JDK installed, so I added temporarily the JDK to the path by doing "set PATH=%PATH%;C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\jre\bin" and only then I could run monitor.exe

avatar image
5

Answer by Brad-Newman · Jun 14, 2019 at 07:38 AM

This command works for me to see Debug.Log messages for the Oculus Quest:

adb logcat | findstr -i unity

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

138 People are following this question.

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

Related Questions

Android Logcat for Unity3D Debugging 1 Answer

Keep getting AudioTrack messages when I use Android logcat with my unity app. 0 Answers

How to disable all logging on release build? 5 Answers

What is TA Load in the Android internal profiler? 0 Answers

Android crash while loading 1 Answer


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