Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Conditional breakpoint in MonoDevelop

Discussion in 'Editor & General Support' started by speps, Apr 4, 2012.

  1. speps

    speps

    Joined:
    Oct 13, 2009
    Posts:
    22
    Hello,

    I'm accustomed to the conditional breakpoints in C++ and C# in Visual Studio but I can't seem to be able to set them while debugging my Unity project in MonoDevelop, any idea ? I searched for "conditional breakpoint" on this forum and nothing came up.

    Here is a screenshot of controls for this but they are disabled, from reading Mono forums I discovered that the debugger needs to support them, well I hope the Unity debugger does :


    Thanks.
     
  2. speps

    speps

    Joined:
    Oct 13, 2009
    Posts:
    22
    Nobody uses this? Come on, that's pretty useful if you want to break on a particular instance of a Script on a particular GameObject :)
     
  3. manutoo

    manutoo

    Joined:
    Jul 13, 2010
    Posts:
    459
    I bounce this topic coz I'm also in need of such feature. Very often, I need to break in a special case, the case where it bugs, so for the moment I'm forced to add some lines of code to do that, which is quite painful... :-S
     
  4. dterbeest

    dterbeest

    Joined:
    Mar 23, 2012
    Posts:
    389
    I am also very interested in this feature. I have been searching for a while on this, but have not found any solution (can remember that it was supposed to be released with 3.5, but alas..)

    Maybe this is something for the wishlist?
     
  5. tylo

    tylo

    Joined:
    Dec 7, 2009
    Posts:
    154
    I'd also love to see this feature, particularly right now. :)
     
  6. Evantron3000

    Evantron3000

    Joined:
    Sep 25, 2012
    Posts:
    4
    did anybody ever figure this out? I could really use some conditional breakpoints, but it remains greyed out :(
     
  7. nstajic

    nstajic

    Joined:
    Jan 4, 2013
    Posts:
    1
    You have to set conditional breakpoint options before attaching to Unity Editor process. Those options are disabled after attaching. To change them you first have to detach...
     
  8. manutoo

    manutoo

    Joined:
    Jul 13, 2010
    Posts:
    459
    what nstajic reported doesn't work with my Unity 3.5.2 + Mono Dev 2.8.2 .
     
  9. jsr2k1

    jsr2k1

    Joined:
    Aug 11, 2010
    Posts:
    115
    You should use this option in Monodevelop:

    Run -> Add Tracepoint
     
  10. cowlinator

    cowlinator

    Joined:
    Mar 15, 2012
    Posts:
    69
    Soooooooo...... still nothing? It's been 3 years, and this is a pretty basic debugging feature.
     
  11. manutoo

    manutoo

    Joined:
    Jul 13, 2010
    Posts:
    459
    It's working with the pluging unityvs (for using VS instead of MonoDevelop), but it's super slow... o_O
     
  12. miguelvela

    miguelvela

    Joined:
    Jul 17, 2015
    Posts:
    1
    For setting a conditional breakpoint in MonoDevelop.
    1. As nstajic already explained, "You have to set conditional breakpoint options before attaching to Unity Editor process"
    2. Right click on the breakpoint and go to Breakpoint Properties, then you get a dialog to set conditions and actions
     
  13. JACK_Z

    JACK_Z

    Joined:
    Nov 1, 2013
    Posts:
    4
    5 years later, nothing changed...