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 Ipsquiggle · Mar 14, 2011 at 05:04 AM · editordebugger

Unity Editor 'actively refused' attaching debugger

(Unity 3.2 / Monodevelop 2.4)

If I have the editor running, and try to 'attach' the debugger using the button in Monodevelop, I get the expected screen to select the process and debugger, but when it tries to attach, I get this error message:

No connection could be made because the target machine actively refused it 127.0.0.1:56972.

Any ideas what might be causing this and how to fix it?

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

4 Replies

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

Answer by Tak · May 02, 2011 at 10:35 AM

This should be fixed in Unity 3.3

Comment
Add comment · Show 5 · 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 Ipsquiggle · May 03, 2011 at 05:57 PM 0
Share

Indeed it has been. :) Thanks for the reply.

avatar image Caiwen · Jan 12, 2012 at 04:08 PM 0
Share

I am in the same trouble?how to fix it?

avatar image dingben · Sep 16, 2014 at 07:17 PM 0
Share

There is more to it... Hm I battled this error with Unity 3.40f5 and $$anonymous$$ono 2.4.2 (WIN 7 Pro)

  1. Start up Unity, double-click a script or click open in the Inspector. Problem already... $$anonymous$$ono comes up but does not come on top of Unity, the button on the TAS$$anonymous$$ BAR darkens, I have to click it to bring $$anonymous$$ono in focus... (Note: ...after this ordeal, low and behold it now does come up on top, as expected... beats me... has never done that in months!?)

  2. in $$anonymous$$ono Click RUN - Attach Process boom! ERROR... machine refuses to connect mono & Unity blow out

  3. Re-start Unity
    • Unity/Edit/Preferences

    • check 'Allow attaching debugger to editor'

    • the only other I have set is 'Refresh Automatically'

    • Built-in $$anonymous$$ono?! or monoDevelop, don't understand, both attach, $$anonymous$$ono comes up just the same, states(Unity) in the App Title bar for both!? monoDevelop is the setting I use.

  4. STILL NOT RESOLVED - Depending on how tangled up you got in trying everything while having to kill Unity and/or $$anonymous$$ono, and for example restarting Unity after making changes in preferences to see if they stick, AND YOU NOW $$anonymous$$NOW EVERYTHING IS SET CORRECTLY - still it can lock up and refuse, even after restarting Unity and $$anonymous$$ono, and even a warm boot!?

  5. Haaa! re-import SUCCESS- (THAT GOT IT TO WOR$$anonymous$$!) Select the script you want to debug, right-click it, re-import I have no idea what the re-import does - the script is $$anonymous$$e, is no-where else on the system to be imported from!?

  6. more to it... so now on your next run, no breakpoint yellow bar!? ...when mono blows up it may also blow out all your breakpoints, so make sure they are there, or it will fool you that it failed again!

  7. ...surely something's bound to come up for 7... stay tuned (lol)

Don't care for credit, hope it helps you - DingBEN.

avatar image maria-dev · Sep 16, 2014 at 08:07 PM 0
Share

upgrade it

avatar image dingben · Sep 17, 2014 at 03:43 AM 0
Share

@maria-dev... SORRY, I added a clarification on 5. above... explicitly stating SUCCESS, ins$$anonymous$$d of semi-implied as I had it. the point is that the checked solution is NOT complete, I am able to debug without an upgrade needed. Now if my version had been as Ipsquiggle, then yes I would have upgraded... what my scenario demonstrates is that one can still have the problem with a 3.3 or higher version, since there are more than 1 reason this occurs.

avatar image
-1

Answer by Caiwen · Jan 12, 2012 at 08:07 PM

how to fix it. I am in same trouble

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 Kryptos · Jan 12, 2012 at 08:58 PM 0
Share

You don't have to spam the site. One comment if enough.

You should upgrade to the latest version of Unity. It is solved in Unity 3.3. Also make sure that your firewall is not blocking connection from/to Unity.

avatar image
0

Answer by Caiwen · Jan 12, 2012 at 08:07 PM

I am in the same trouble. Could please tell me how to solve it?

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 Martin.n.stauber · May 09, 2012 at 03:33 PM

A possible solution to this is to ensure you are allowing the debugger to attach to the unity editor.

The check box to allow the debugger to attach is in:

Edit->Preferences->General->Allow Attaching Debugger to Editor

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity Editor blocking incoming network packets 1 Answer

Debugging on Mavericks 0 Answers

PC can't make socket connections after running game in editor 0 Answers

Unity version dependent deprecation, possible? 1 Answer

Is PlayerPrefs stored for in-editor testing? 3 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