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
7
Question by Jens Fursund · Oct 21, 2009 at 09:00 PM · iphonepluginxcodedebug

How would I debug a Unity-plugin from XCode?

What are the proper settings in XCode to debug a Unity Objective C/C++ plugin? I would like to know exactly what project settings are needed and how I should hook up XCode with Unity in order to start debugging.

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 DaveA · Feb 18, 2012 at 12:41 AM 0
Share

It would be great to get instructions for this for XCode4 and Unity 3.5

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by jonas-echterhoff · Nov 16, 2009 at 07:57 PM

I haven't tried this for Unity C++ plugins, but this is normally how you debug dynamic libraries in XCode (works with our web plugin):

Build a debug version of your plugin. Then either: -Run Unity, in XCode "Run" menu choose "Attach to Process" to attach to Unity -Or choose "Project"->"New Custom Executable", Choose Unity.app, set the working directory to Unity, and then run that executable from XCode.

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 DaveA · Feb 18, 2012 at 12:05 AM 0
Share

can you update this with current XCode commands? there is no longer a 'project' menu

avatar image
0

Answer by bloodtiger10 · Oct 31, 2009 at 07:19 PM

gdb cannot be used to debug a plugin to my knowledge you should just do things like printing stuff to screen and what not to debug 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 Kay · Jan 26, 2011 at 11:05 PM

I just managed to debug the bonjour client sample. Until now message "Previous frame inner to this frame (gdb could not unwind past this frame)" shows up on every break point hit, but it works so far. Although I use debug settings and GCC 4.2 as proposed in related question on stack overflow, I get these warnings. I guess there is some Unity code compiled using LLVM, but can live with that.

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 DaveA · Feb 18, 2012 at 12:04 AM 0
Share

Can you be more specific? Which version of Unity, which version of XCode did you use? How did you manage to get it running an set breakpoints?

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

1 Person is following this question.

avatar image

Related Questions

Specific steps to set up a plugin for iphone in XCode 1 Answer

Adding files and frameworks to xcode automatically after build button 1 Answer

Have to "Replace" iOS project every build because of Linker Errors 0 Answers

iPhone Build Errors 5 Answers

pdb2mdb.exe not working on Visual Studio 2015 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