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
0
Question by felixmann · Jun 09, 2020 at 03:18 PM · visual studiodebug.log

How to see Unity Debug.Logs in Visual Studio?

I have seen posts saying that Unity debug logs should automatically appear in Visual Studio. Where can I see these logs?

I can see my logs in Unity:

alt text

But nothing in Visual Studio even though I attach to Unity and can debug with breakpoints:

alt text

I'm on Mac Catalina, Visual Studio Enterprise 8.6 and Unity 2019.2.21f1.

Any ideas?


Edit I also don't see the logs in the Application Output window (I would add an attachment, but looks like there's a limit of 2 per question :/).

screen-shot-2020-06-09-at-81612-am.png (11.9 kB)
screen-shot-2020-06-09-at-81427-am.png (8.2 kB)
Comment
Add comment · Show 2
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 hexagonius · Jun 09, 2020 at 07:04 PM 0
Share

I googled "visual studio mac output window" and found a few solutions (within first 5 results) to how to get to the output window (sorry, do not have a mac)

avatar image felixmann hexagonius · Jun 09, 2020 at 10:43 PM 0
Share

I also don't see the log messages in the Application Output window :/

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MKGPlayz · Jun 10, 2020 at 12:59 AM

Here you go.

 using UnityEngine;
 using System;
 
 public class PrintVS : MonoBehaviour {
 
    // You can store your text in a variable
    public string Message = " Hope";
 
    void Start(){
          Debug.Log("Hope " + Message);
 
          //Use this line of code (it's built-in C# Syntax)
          Console.out.WriteLine("Hope " + Message);
    }
 }
 
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 felixmann · Jun 10, 2020 at 01:38 PM 0
Share

Hm, and where do these Console.Out.WriteLine messages show up? $$anonymous$$y "Application Output - Unity Editor (background)" window is still empty :/

avatar image
0

Answer by DSivtsov · Dec 16, 2021 at 07:35 PM

@felixmann You can use Workaround: The Unity editor save all its output to log file. Common place of this log is C:\Users\\AppData\Local\Unity\Editor (Editor.log). You can watch it by every text Editor (more helpful Notepad++, because it can automatically update the showing content). Unity Editor send to this file the all output of its Debug.Console, not only the short version which we see at Debug.Console. In summary its look little weird, but for short checking is normal. Also the Unity Editor send to this file the output of System.Console.WriteLine() (but doesn't show it in the standard Unity Debug.Console) and it's heavy to find that it, but it's possible

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

136 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

Related Questions

Unity 5.2, VS Community 2015 and Debug logging 0 Answers

Why are Vector2 parameters of methods , set to be = new Vector2 , read as being null by dll ? 1 Answer

Cant attach debugger | Compile Errors in VS but not in Unity? 0 Answers

How to uninstall visual studio? 0 Answers

how to link external visual studio programs to unity project? 0 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