Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Debugging mode persistency between sessions

Discussion in '2020.1 Beta' started by ZAXIS, Mar 30, 2020.

  1. ZAXIS

    ZAXIS

    Joined:
    Sep 30, 2016
    Posts:
    23
    It is really annoying *to forget* to switch on the debugging mode every time after a restart and before I attach visual studio.
    Is it possible to make editor remember what mode it was in between sessions?
     
    Peter77 likes this.
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,627
    You don't need to switch to debug mode before attaching Visual Studio. I'm also not sure how you can forget to do that: don't you get a dialog asking you if you want to do it once you attach Visual Studio?

    upload_2020-3-30_12-17-40.png

    Also, there's an editor preference called "Code Optimization on Startup" which you can change to debug if you want the editor to start in debug mode.
     
  3. ZAXIS

    ZAXIS

    Joined:
    Sep 30, 2016
    Posts:
    23
    If you press that button, that will cause domain reload. Which means the entire setup you prepared in Editor goes into trash, and is to be repeated again :)

    But thank you for the whereabouts of the checkbox. That's what I was missing