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
4
Question by saltatory · Sep 16, 2016 at 12:35 PM · variablevisual studiodlldebug

VSTU Debugging with Remote Symbols and Sources

Howdy - my team is writing libraries for use with Unity across our entire development studio.

We have taken the approach of compiling our libraries into DLLs so we can unit test them and use them outside Unity. We have also packaged them as NuGet packages so we can track transitive dependencies among libraries.

We are having trouble debugging the libraries using VSTU.

We have TeamCity configured as both a source and symbol server. We have Visual Studio (2015) configured to use the source and symbol servers from TeamCity. For non-Unity projects, like servers, when the local development environment lacks symbols and sources, Visual Studio automatically goes to the network and obtains the symbols and also the sources. Everything is wonderful.

When we try to debug Unity using this setup, almost nothing works correctly.

When I open the Debug -> Windows -> Modules dialog in VS, only the Assembly-CSharp symbols are loaded despite "Right Click -> Load Automatically" being checked. The dialog fails to identify where the symbols are loaded from (Symbol File) and several other attributes. When I "Right Click -> Load Symbols", nothing appears to happen. I have symbol files (PDBs and their automatically generated MDBs) copied into the same directory as the DLL included in the Unity project. I pcap'd the network and am pretty sure that VS is not even trying to load PDBs from the Debug -> Options -> Symbols symbol servers.

When I include a reference to the original project in my Unity game solution but it is in a different directory than that from which the DLL came, it fails to load the debugging symbols despite searching included projects being supported by native VS.

The other search option supported by native VS is searching "Solution -> Common Properties -> Debug Sources". The properties on Unity solutions are disabled by VSTU.

The one and only one thing that appears to work is :

  • Copy the DLL into the Unity project

  • Copy the PDB into the same location

  • Leave the source in the same file system location that the DLL/PDB thinks it originally came from

Under these very special circumstances, VSTU will report the Symbols as loaded and permit stepping into the source.

Other debug options like "Show disassembly if source is not available" do not work.

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 faviann_sauro · Jun 01, 2017 at 08:13 PM 0
Share

Have you come with a conclusion about how to debug it?

0 Replies

· Add your reply
  • Sort: 

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to debug c++ dll code 4 Answers

Can I see debug log(ex:printf) from C++ dll in Unity? 0 Answers

Debugging an Android device from Visual Studio 2019 2 Answers

Cannot watch local variable value if the function contains a "yield" 1 Answer

Source file could not be found - Unity 2018.2 4 Answers


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