Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
3
Question by schmi85 · Dec 01, 2015 at 10:24 AM · monodevelopdebuggerbreakpoint

Unity Linux—Connect to Debugger

Hello Everybody,

I have downloaded and install the Unity Linux beta (5.1.0f3) which running quite nice, and except some crashes here and there, It does what it should. The only thing I cannot get to run is the Mono Debugger. I installed monodevelop

 sudo apt-get install monodevelop -y

and if I click on a script file, everything opens as it should, including auto completion and that alike. However I I try to attach to the debugger, I just never works, so I cannot step through the code.

I tried to start the game first and each available process in the list

alt text

But all I get is:

alt text

Any Ideas how to fix this? Might that be an permission issue?

attach-to-process-006.png (43.6 kB)
untitled-window-007.png (7.8 kB)
Comment
Add comment · Show 1
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 or113 · Dec 10, 2016 at 10:49 AM 0
Share

Have you solved this?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Lao2211 · Mar 18, 2017 at 01:44 PM

The answer is in this forum post: https://forum.unity3d.com/threads/solved-dependencies-not-installed.435441/

More than a BUG like the author of that post thinks, I would say that this happens when you have MonoDevelop already installed before you installed Unity.

In resume: first run "sudo apt-get install mono-complete gnome-sharp2". Then, every time you reopen the editor you will have to right click the Project, in the left, not the solution, and then "options" and change Mono version to 4.5. As the default, at least for Ubuntu 16.04 is "3.5 (not installed)", and for some reason close and reopen Unity Editor causes MonoDevelop to reload the solution and forget your changes to project options, so Mono version resets to 3.5.

How to debug: you need to have Unity Editor open, do not run your project or you will miss all breakpoints in the Start() method of your scripts. Then switch to the MonoDevelop window, click the play button, and in the dialog to attach to process select "Attach to Unity Editor" the last option, not the first one. Then switch back to Unity Editor and run your game. You will trigger all breakpoints, including the ones in the Start() methods.

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 graslany · Aug 27, 2017 at 06:59 AM

Regarding the target framework version and the fact that you cannot set it to 4.5 reliably: the catch here is not about Monodevelop "forgetting" things. It's the Unity editor that completely rewrites the .Net project file (Assembly-CSharp.csproj and the like). You can make a simple test to check that: before opening anything, open the project file (Assembly-CSharp.csproj if you're doing C#) and add some modification into it (e.g. add some spaces or comment using a text editor like gedit or kwrite). Then start the unity editor and open your project file in a text editor again: your modifications are gone.

This because the Unity editor uses its own compiler (if I recall correctly... but I looked into it a while ago so you should not take my word for it), and it does not really care about what the .csproj file says. This .csproj project file is automatically generated by Unity so that external tools like MonoDevelop can open it as if it were a "real" .Net solution and know what files are included into it. But once again, Unity does not use this file, and erases it from time to time (when it starts and when you add/remove/move scripts and files I guess).

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Run unit tests (nUnit) in debug mode (MonoDevelop) 0 Answers

mono develop debugging stops on lines without breakpoints 2 Answers

Monodevelop 5.9.6 not stopping at breakpoints 1 Answer

Why does monodevelop sets "pink", nonfunctioning breakpoints ? 1 Answer

Stepping in MonoDevelop Debugger takes a long time when using buttons 1 Answer


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