Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

error when debuging c++ dll in unity

Discussion in 'Editor & General Support' started by baiyunshan, Mar 22, 2019.

  1. baiyunshan

    baiyunshan

    Joined:
    Jan 28, 2019
    Posts:
    2
    I have a project which using c++ dll,now I want to debug the c++ code, I use Visual Studio 2017 Debug->Attach To Process -> Unity.exe,then error like this upload_2019-3-22_15-20-14.png

    unity version is 2017.4.23

    I have made some test, Create a new 2d Unity Empty Project, then use VS attach to Unity.exe, error. But 3d empty project is ok.
    ProjectSettings/EditorSettings.asset m_DefaultBehaviorMode=0 error, m_DefaultBehaviorMode=1, ok

    Any one knows why ? thanks a lot!