Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by Dezaos · Sep 14, 2016 at 02:48 PM · debugfreezingbreakpoint

Visual Studio breakpoint freeze.

I'm using Visual Studio 2015 to write my code. And I'm used to use breakpoint to debug. But every time i try to place a breakpoint, attract to unity and play. Then Unity will just freeze and then i have to close unity though the task manager. I'm using Unity 5.4.0f3 and Visual Studio 2015 14.0.24720.

Comment
Add comment · Show 7
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 Sergio7888 · Sep 15, 2016 at 12:57 AM 1
Share

When you use a breakpoint when the code reaches the breakpoint you need go to visual studio, step over the code, press continue, or press stop debug to continue the unity execution.

avatar image Dezaos Sergio7888 · Sep 15, 2016 at 12:57 PM 0
Share

That is what I want. But that never happens, unity just freezes and never runs into the breakpoint. It like there is a thread, which have run into a deadlock or something.

avatar image Sergio7888 Dezaos · Sep 15, 2016 at 06:17 PM 0
Share

Unity will freeze, but visual studio will stop at the breakpoint, and you need debug in visual studio, you cant debug in unity directly.

avatar image Vanlalhriata · Sep 19, 2016 at 10:50 AM 1
Share

I have the same problem. I narrowed down the cause to a single line where I am subscribing to the IsAvailableChanged event of a $$anonymous$$inectSensor instance. It doesn't matter if the event handler is blank - subscribing to the event is enough to freeze Unity. General Events don't seem to be a problem as I can subscribe to other custom events.

I hope this helps somewhat. I'm using Unity 5.4.0f3 and Visual Studio 2015 14.0.25425.01 Update 3

avatar image CaronteDev Vanlalhriata · Feb 08, 2017 at 04:58 PM 0
Share

Same is happening to me, but when subscribing to another native dll. Did you find a solution for this?

avatar image Vanlalhriata CaronteDev · Feb 09, 2017 at 05:30 AM 0
Share

No I didn't. Ins$$anonymous$$d I used logs to check variables and control flow and I shamelessly commented out the part when I did want to debug other parts. $$anonymous$$y project was a small one so I didn't really want to spend the time. Good luck on yours.

avatar image justinvirtualitics · Oct 28, 2016 at 07:51 AM 1
Share

I have a similar issue in some cases, but not in others. Often, I can place breakpoints and they work properly, other times, the very existence of a breakpoint will result in Unity and Visual studio hanging, requiring a force-close. The breakpoint is never hit in this case.

0 Replies

· Add your reply
  • Sort: 

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

6 People are following this question.

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

Related Questions

Not able to use Visual Studio as debugger, but it works as editor 2 Answers

Monodevelop 4.0.1 breakpoints won't work. 0 Answers

VS 2013: Breakpoint only if an error happens 0 Answers

Debug breakpoints not breaking 0 Answers

Hitting Mono Breakpoint Crashes Unity 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