Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question How to use a custom debugger (not VS, VS code, or Rider) in Unity?

Discussion in 'Code Editors & IDEs' started by Long2904, Jun 16, 2022.

  1. Long2904

    Long2904

    Joined:
    May 13, 2019
    Posts:
    81
    Is there any way to run a custom debugger (not VS, VS code, or Rider) in Unity? My debugger only needs an executable and a pdb file. Unity compiles C# code into DLL and calls it so I wonder if they ever document any API to attach a program to the debugging process.
     
  2. Recatek

    Recatek

    Joined:
    May 2, 2020
    Posts:
    30
    You can attach something like lldb to the Unity editor executable and it should work if it can find symbol information. Unfortunately I've found that attempting to detach lldb or stop it will crash Unity.
     
  3. Long2904

    Long2904

    Joined:
    May 13, 2019
    Posts:
    81
    Can you elaborate more on it? How does the attach process work?