Search Unity

Cannot debug scripts after switching project to AB

Discussion in 'Asset Bundles' started by pavelkouril, Apr 5, 2018.

  1. pavelkouril

    pavelkouril

    Joined:
    Jul 22, 2016
    Posts:
    129
    Hello,

    we are encountering an issue where we cannot debug code (the project + VS freezes after trying to attach a breakpoint) after switching the project to AssetBundles. Removing _just_ the AssetBundles creation and letting the scenes to be embedded again directly in build makes debugging work correctly.

    We can connect debugger to only a few scripts ran upon start of the game, but anything after that results in the aforementioned freeze behavior.

    Happens with both old and new scripting runtime. When we tried to make a separate isolated test case, we weren't able to encounter the same behavior.

    Any ideas/hints about potential causes of the issue would be helpful.