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 jaycode · Jul 16, 2012 at 03:57 AM · debugger

Debugging on runtime in Unity3d is not working??

I have followed the tutorial here: "http://docs.unity3d.com/Documentation/Manual/Debugger.html" but I cannot find "Allow attached debugging" checkbox:

Unity: Ensure you have "Allow attached debugging" checked in the Preferences window.

I have followed the tips here: http://forum.unity3d.com/threads/61366-Live-Debugging-in-Unity-3 but it simply does not work.

The behaviour as follows: 1. Clicking on "debug" or run with > unity debugger in mono develop ALWAYS open new instance of unity app. Why the hell can't it use the currently active unity instance? 2. Added a breakpoint in Start() method of a class, somehow the debugger does not stop at that line.

Is the debugger still buggy as of Unity release 3.5.0f1?

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

2 Replies

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

Answer by Avaista · Jul 16, 2012 at 05:00 AM

Open Monodevelop from unity, close unity, then hit debug.

It should open the project as normal.

When you press play, your breakpoints should hit.

You are debugging Unity itself(If I remember correctly), not just your game. Since it needs to be able to debug Editor Scripts, Asset pre/post processing scripts etc. It start at Unity. I know it is annoying, but trust me it's not a bug. If it was, you would be hearing considerably more bitching.

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 jaycode · Jul 16, 2012 at 05:05 AM 0
Share

Yes, now it is! Thanks

avatar image Avaista · Jul 16, 2012 at 05:11 AM 0
Share

Yay for you. Have Fun and Good Luck

avatar image _Shockwave · Mar 06, 2013 at 10:33 AM 0
Share

you can also use debug consoles from the asset store which lets you call a function or set a variable on a game object at runtime (in play mode).

avatar image
2

Answer by Madpeter · Feb 04, 2014 at 06:12 PM

when my breakpoints fail (turn pink and do nothing)

1: make sure monodev is attached 2: clean/build 3: go into unity 4: find the script 5: select reimport

this normally gets them working again.

the trigger seems to be when you jump from monodev to unity to fast and you get a failed to move file error.

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 rockyourteeth · Apr 13, 2014 at 11:38 PM 0
Share

Thank you for this answer. It was the "reimport" step that fixed it for me.

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

A node in a childnode? 1 Answer

Mono Debugger Keeps Locking Up 1 Answer

Attaching MonoDevelop to iPhone? 3 Answers

List Bug when using debugger 1 Answer

Unity 3D with Oculus Rift? 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