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
9
Question by Ripytide · Aug 19, 2020 at 12:15 PM · debugging

Unity editor infinite "Application.Reload" when debugging

I'm using Unity 2020.1.2f1 and Visual Studio 16.7.2

I'm having a lot of trouble debugging with Unity, When I open a new 3d project, add a cube, create a script and simply put in start: print("hello"); I add the script to the cube and hit start on Unity. As you would expect the console prints "hello", however, when I add a breakpoint to that line in visual studio, click "Attach to Unity" and then go back to unity and hit play Unity shows the hold on Application.Reload box without any changes to VS. When i then hit stop in VS nothing changes in Unity and it is now infinitely stuck on Application.Reload.

Interestingly, when instead of hitting Attach to Unity I hit Attach to Unity and Play it works just how expected and shows me the breakpoint and the local variables.

What am I doing wrong and why is unity hanging?

Comment
Add comment · Show 5
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 tristynstimpson · Sep 16, 2020 at 12:02 PM 0
Share

I have the same issue, happens on Unity 2020.1.1f1 to 2020.1.5f1

I found Unity has a chance to hang when doing a lot of things in the debugger. Attaching, mousing over variables to see their values in VS, exiting play mode when debugger attached. Hitting play and then attaching debugger is very reliable but can still hang when doing the above.

avatar image FourthMouse · Sep 25, 2020 at 11:28 AM 0
Share

I've also had this happen in Rider and Visual Studio Code. I thought it was initially a problem with just Visual Studio Community, but I think it's just something wrong with Unity. Hopefully they fix it soon, I've had to rely on other programs to auto save scenes so I don't lose progress because of this. I was using Unity 2020.1.5f1.

avatar image CabbageWarrior · Nov 05, 2020 at 10:06 AM 0
Share

Same with Unity 2020.1.10f1 :'( Does anybody have a solution to this? (I still have to try the "Attach to Unity and Play".)

avatar image Armdt · Nov 08, 2020 at 02:19 PM 0
Share

same problem with unity 2020.1.12f1

avatar image sertacdncl · Dec 15, 2020 at 10:07 PM 0
Share

I updated rider to 2020.3 today. I am using Unity 2020.1.17f1 and its happen today. Infinite Application.Reload says when i try to attach rider and play. Is there any solve?

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by mightychili · May 07, 2021 at 09:53 AM

Might turning off Reload Domain be the solution to your problem? https://blogs.unity3d.com/2019/11/05/enter-play-mode-faster-in-unity-2019-3/

UPDATE: I've created a bug report for a similar issue I have, while referencing this post: FogBugz (unity3d.com)

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 MarcusJT · Feb 03, 2021 at 01:11 AM

Same issue - absolutely infuriating

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 XRA · Feb 04, 2021 at 12:22 AM

there's a related forum thread here if you could post in here & hopefully help get some eyes on the general Application.Reload indefinite hang when a debugger is attached. https://forum.unity.com/threads/application-reload.989720/

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

140 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 avatar image avatar image

Related Questions

MonoDevelop unable to attach to Android device 0 Answers

MonoDevelop Debugging of Android Player: How to Attach to Process of Android Device/Application 1 Answer

Cannot install APK on ARMv6 Android device 2 Answers

How to debug an Android application in Visual Studio using USB debugging? 2 Answers

Input.GetMouseButton NEVER returns false 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