Search Unity

MonoDevelop Can not debug?

Discussion in 'Editor & General Support' started by janeky, Nov 13, 2013.

  1. janeky

    janeky

    Joined:
    Nov 13, 2013
    Posts:
    2
    Some time ago, I can use monodevelop debug with unity4.2.

    However, a few days ago, it suddenly out of control.

    when I use "Run->Attach to Process", it fail and show the message something like that

    "Could not connect to the debugger."

    I have close other running program.

    I delete the unity4.2 and monodevelop.

    I install unity4.3 and monodevelop.

    But it still fail.

    Is anyone can help me?

    Thank you

    ken.
     
    Last edited: Nov 15, 2013
  2. buti_s

    buti_s

    Joined:
    Jan 17, 2014
    Posts:
    1
    Hello.

    [Preference / External Tools / Editor Attaching] must be enabled.

    Please check.
     
    one-up likes this.
  3. XRi

    XRi

    Joined:
    Aug 29, 2014
    Posts:
    1
    I find the answer here!
     
  4. gooncorp

    gooncorp

    Joined:
    Dec 30, 2011
    Posts:
    131
  5. TBruce

    TBruce

    Joined:
    Jan 18, 2015
    Posts:
    86
    Try removing all breakpoints before performing "Attach to process...".

    Worked for me.

    I had the same problem and it drove me nuts.
     
    jiayizhang likes this.
  6. Andy-Block

    Andy-Block

    Joined:
    Aug 10, 2012
    Posts:
    10
    Mavina, I could kiss you! This totally sorted it for me, and it's been bothering me for *months*! Thanks!
     
  7. TBruce

    TBruce

    Joined:
    Jan 18, 2015
    Posts:
    86
    I started having the problem again. This time deleting all breakpoints did not fix it. After several days of trying everything (including complete reinstall of Unity - twice), I looked at my antivirus program (I am using ZoneAlarm Extreme).

    I then removed both Unity and MonoDevelop completely from the Application Control Setting of ZoneAlarm and that did the trick.
     
    Last edited: Jun 5, 2015
  8. BetaBeat

    BetaBeat

    Joined:
    Oct 15, 2015
    Posts:
    1
    Worked for me: in Unity: Edit -> Preferences... -> External Tools -> (set) Editor Attatching -> restarting the computer
     
    UnityTester33 likes this.
  9. pdusp

    pdusp

    Joined:
    Dec 17, 2016
    Posts:
    1
    I have problem: Could not connect to the degugger. <- get this message and I can't set break points.
    I turned off firewall and unistalled antivir. I have now 5.6 version and before 5.5 with the same problem.
    How to debug?
    Thank you!
     
  10. lirco

    lirco

    Joined:
    Apr 8, 2017
    Posts:
    1
  11. UnityTester33

    UnityTester33

    Joined:
    Dec 17, 2016
    Posts:
    7
    This worked for me as wellr
     
    Overnaut likes this.
  12. Overnaut

    Overnaut

    Joined:
    Aug 25, 2017
    Posts:
    19
    Why the hell is there no correct message in mono develop referring to this simple solution? I wasted two hours of my life because of "Could not connect to the debugger." this is an impertinence. The developers who did this are incompetent.