Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 4ce787f

Browse files
committed
Hotfix for detaching unity process. Making sure that we dispose the
adaptor so Unity can close correctly.
1 parent 8bc76bd commit 4ce787f

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed
2.32 MB
Binary file not shown.

External/Mono.Debugger.Soft.dll

148 KB
Binary file not shown.
49.8 KB
Binary file not shown.

UnityDebug/UnityDebug.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,18 @@
3333
<PlatformTarget>x86</PlatformTarget>
3434
</PropertyGroup>
3535
<ItemGroup>
36+
<Reference Include="Mono.Debugger.Soft, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756">
37+
<HintPath>..\External\Mono.Debugger.Soft.dll</HintPath>
38+
</Reference>
3639
<Reference Include="MonoDevelop.Debugger, Version=2.6.0.0, Culture=neutral, PublicKeyToken=3ead7498f347467b">
3740
<HintPath>..\External\MonoDevelop.Debugger.dll</HintPath>
3841
</Reference>
3942
<Reference Include="MonoDevelop.Unity, Version=1.4.0.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
4043
<HintPath>..\External\MonoDevelop.Unity.dll</HintPath>
4144
</Reference>
45+
<Reference Include="SyntaxTree.VisualStudio.Unity.Messaging, Version=1.4.0.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
46+
<HintPath>..\External\SyntaxTree.VisualStudio.Unity.Messaging.dll</HintPath>
47+
</Reference>
4248
<Reference Include="System" />
4349
<Reference Include="Mono.Debugging.Soft">
4450
<HintPath>..\External\Mono.Debugging.Soft.dll</HintPath>
@@ -70,9 +76,6 @@
7076
<Compile Include="..\MonoDebug\src\Utilities.cs">
7177
<Link>MonoDebug\Utilities.cs</Link>
7278
</Compile>
73-
<Compile Include="..\MonoDevelop.Debugger.Soft.Unity\UnityDebuggerStartInfo.cs">
74-
<Link>MonoDevelop.Debugger.Soft.Unity\UnityDebuggerStartInfo.cs</Link>
75-
</Compile>
7679
<Compile Include="Properties\AssemblyInfo.cs" />
7780
<Compile Include="UnityDebugSession.cs" />
7881
<Compile Include="Program.cs" />

UnityDebug/UnityDebugSession.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ public override void Disconnect(Response response, dynamic args)
303303
_breakpoints.Clear();
304304
_session.Breakpoints.Clear();
305305
_session.Continue();
306+
_session.Detach();
307+
_session.Adaptor.Dispose();
306308
_session = null;
307309
}
308310
}

0 commit comments

Comments
 (0)