Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Visual Studio Debugging

Discussion in 'Code Editors & IDEs' started by Reapazor, Feb 11, 2011.

?

I would like to see support for Visual Studio

  1. Yes

    99.2%
  2. No

    0.8%
  1. Reapazor

    Reapazor

    Joined:
    Jun 19, 2008
    Posts:
    173
    How many people would like to see Visual Studio support for debugging Unity (identical to the MonoDevelop implementation).
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    all would likely like it but you can't cause MS.NET does not debug mono.
    you would need the mono plugin for VS to even approach it, which costs money to buy while mono develop does it for free. Also from what mention in 2010, it seems like monodevelop as time passes by, will become the new standard editor for unity development

    at the time debugging even with the mono plugins for VS doesn't work at least not in a form that makes any sense at all
     
    Last edited: Feb 11, 2011
  3. Reapazor

    Reapazor

    Joined:
    Jun 19, 2008
    Posts:
    173
    The long and the short of it ... this is more of an informational post to anyone that cares :)

    When you launch Unity from MonoDevelop it sends along a few arguments which tell Unity to pipe the internal Mono debug information to a socket where there is a service (built into MonoDevelop) listening for the info.

    This part is quite easy to replicate and I was able to have Unity sending data to Visual Studio in that capacity rather quickly (spent an evening). The issue is having the debugger in VS show that information, and thats where VS's extendible Debug Engine and Evaluation Engine come into play.

    The process would involve crafting a layer between the two which would convert Mono's information into readable information by VS. Sounds fun?

    Well the reality is Mono Tools for VS is basically doing that (more or less), it launches apps and send similar arguments along. It would be entirely feasible to extend Mono Tools to support Unity. That would save the time of creating the DE/EE, but then that starts the financial debate. It's 99$ for the base line Mono Tools ...

    Anyways, entirely possible, and proof of concepts worked quite well.

    It's been suggested though that I return to my roots of working on MD addins/features to make up for the features in VS that I really like.
    I probably will do that. I just wanted to see if there was enough demand for something like this.
     
    Last edited: Feb 12, 2011
  4. trs79

    trs79

    Joined:
    Jan 27, 2012
    Posts:
    1
    I have MonoTools installed, and am very interested in how you got the information to forward to Visual Studio. Thanks for any help
     
  5. jc_lvngstn

    jc_lvngstn

    Joined:
    Jul 19, 2006
    Posts:
    1,508
    I'd pay a nice amount to be able to have visual studio debugging with good performance. Visual studio is just an awesome product, and with Resharper I just have a hard time using anything else.
     
  6. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    487
    Agreed. After using various IDEs and debuggers over the last 15+ years (CodeWarrior for GC/Wii, ProDG for PS2/PS3, VS from 5+, MonoDevelop, gdb, Turbo Pascal from 3+, Borland C++ 4+, Turbo Debugger, etc etc etc) , I've found Visual Studio to be one of the best out there. I would definitely pay to get VS integrated with Unity. Imho MonoDevelop is clunky and doesn't feel like a professional tool.
     
  7. kablammyman

    kablammyman

    Joined:
    Nov 22, 2010
    Posts:
    507
    hell yeah i want this!!
     
  8. Doddler

    Doddler

    Joined:
    Jul 12, 2011
    Posts:
    269
    I would love to see this available!
     
  9. Neutron

    Neutron

    Joined:
    Apr 25, 2011
    Posts:
    45
    Would definitely pay good money to be able to debug in VS
     
  10. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    same here, I will pay to get rid of monodevelop!
     
  11. PatHightree

    PatHightree

    Joined:
    Aug 18, 2009
    Posts:
    297
    Shut up and take my money !
    (when you're finished)
     
  12. konetkar500

    konetkar500

    Joined:
    Feb 16, 2012
    Posts:
    2
    i have used in Vb .net but now i will def try it in .net
     
  13. jbevain

    jbevain

    Microsoft

    Joined:
    Feb 22, 2012
    Posts:
    141
    Hey,

    I'm tooting my own horn here, but we've just announced UnityVS, a plugin bridging Unity and Visual Studio, which includes debugging of scripts inside VS. I encourage you to sign-up to the beta if you want to try it out!
     
  14. Doddler

    Doddler

    Joined:
    Jul 12, 2011
    Posts:
    269
    Sexy, this looks quite promising too!
     
  15. wulven

    wulven

    Joined:
    Sep 29, 2010
    Posts:
    5
    Yes, it's nice. But I think Mono Develop is best choose of all time, because VS is windows' IDE and Mono Develop is an cross-platform IDE.
     
  16. josszp

    josszp

    Joined:
    Jul 15, 2010
    Posts:
    13
    Yes, it's so useful!!! I am waiting for it online.
     
  17. Integria

    Integria

    Joined:
    May 12, 2012
    Posts:
    145
    I'd absolutely love to see it.

    It is amusing how I can't live without the ability to debug in any regular C++ or C# project I do, but when it comes to C# scripting in Unity... well, in that context my mind has entirely forgotten about debugging the regular way. It just seems that I'd rather debug with prints and workarounds than actually switch momentarily to monodevelop.