A recompile is triggered in Visual Studio and this disconnects the debugger

(Please make the title of your topic brief but informative, and post error messages under the next heading Details and error message(s))

Description, details and error message(s)

Our code team usually stays attached to the debugger whilst coding and running the game and, whilst there can be a performance hit, this generally works fine. For some reason, these intermittent re-compiles change focus to the Visual Studio Output window (as if we’ve hit build or rebuild) and the debugger is detached from Unity. This can happen after hitting play mode, perhaps caused by a domain reload, which means we get detached without realising and then miss the break points we’re hoping to hit.

Expected behaviour

The code should not randomly recompile and if it does, it should not detach the debugger.

Screenshots

If applicable, add screenshots to help explain the problem.

How to reproduce

Rate: (Choose one, or describe it yourself)
Once / Sometimes / Every time

Steps:

  1. step
  2. step

Environment

SDK:
Unity:
OS/Platform:

Hey!

Do you perhaps have the “Bake on enter play mode” enabled in the coherence settings?
image

Other than that we’re not initiating recompilation automatically.

Hi Filip,

No I don’t have that setting enabled