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

Commit 99e3ac2

Browse files
committed
Updated libraries after updating mono.posix in debugger-libs.
1 parent a449669 commit 99e3ac2

21 files changed

+29
-11
lines changed

Diff for: Changelog.txt

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Git: https://github.com/Unity-Technologies/vscode-unity-debug
66
Changes
77
-------
88

9+
2.7.0
10+
=====
11+
- Update debugger libs. This patch includes sending the absolute file path to the debugger agent on native.
12+
913
2.6.7
1014
=====
1115
- Fix launch settings configuration through resolve.

Diff for: External/ICSharpCode.NRefactory.CSharp.dll

0 Bytes
Binary file not shown.

Diff for: External/ICSharpCode.NRefactory.CSharp.pdb

0 Bytes
Binary file not shown.

Diff for: External/ICSharpCode.NRefactory.dll

0 Bytes
Binary file not shown.

Diff for: External/ICSharpCode.NRefactory.pdb

0 Bytes
Binary file not shown.

Diff for: External/Mono.Cecil.Mdb.dll

0 Bytes
Binary file not shown.

Diff for: External/Mono.Cecil.Mdb.pdb

0 Bytes
Binary file not shown.

Diff for: External/Mono.Cecil.dll

0 Bytes
Binary file not shown.

Diff for: External/Mono.Cecil.pdb

0 Bytes
Binary file not shown.

Diff for: External/Mono.Debugger.Soft.dll

0 Bytes
Binary file not shown.

Diff for: External/Mono.Debugger.Soft.pdb

0 Bytes
Binary file not shown.

Diff for: External/Mono.Debugging.Soft.dll

0 Bytes
Binary file not shown.

Diff for: External/Mono.Debugging.Soft.pdb

0 Bytes
Binary file not shown.

Diff for: External/Mono.Debugging.dll

0 Bytes
Binary file not shown.

Diff for: External/Mono.Debugging.pdb

0 Bytes
Binary file not shown.

Diff for: External/Mono.Posix.dll

30 KB
Binary file not shown.

Diff for: UnityDebug/Log.cs

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using System;
22
using System.IO;
33
using System.Reflection;
4+
using System.Security.AccessControl;
5+
using System.Text;
46

57
namespace UnityDebug
68
{
@@ -28,11 +30,18 @@ public static void DebugWrite(string message)
2830
Write (message);
2931
}
3032

33+
public static void LogError(string message, Exception ex)
34+
{
35+
Write(message + (ex != null ? Environment.NewLine + ex : string.Empty));
36+
}
37+
3138
public static void Write(string message)
3239
{
3340
var formattedMessage = FormatMessage (message);
34-
lock (logPath) {
35-
File.AppendAllText (logPath, formattedMessage);
41+
var buf = Encoding.UTF8.GetBytes(formattedMessage);
42+
using (var stream = new FileStream(logPath, FileMode.Append, FileAccess.Write, FileShare.ReadWrite))
43+
{
44+
stream.Write(buf, 0, buf.Length);
3645
}
3746
}
3847
}

Diff for: UnityDebug/Program.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Diagnostics;
23
using System.IO;
34
using System.Linq;
45
using System.Reflection;
@@ -38,7 +39,7 @@ public void LogAndShowException(string message, Exception ex)
3839

3940
public void LogError(string message, Exception ex)
4041
{
41-
Log.Write(message + (ex != null ? Environment.NewLine + ex : string.Empty));
42+
Log.LogError(message, ex);
4243
}
4344

4445
public void LogMessage(string messageFormat, params object[] args)
@@ -48,7 +49,7 @@ public void LogMessage(string messageFormat, params object[] args)
4849

4950
public string GetNewDebuggerLogFilename()
5051
{
51-
return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location) + "-log.txt");
52+
return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location) + "-another-log.txt");
5253
}
5354
}
5455

Diff for: UnityDebug/UnityDebugSession.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ public UnityDebugSession()
152152
m_ResumeEvent.Set();
153153
};
154154

155-
m_Session.TargetStarted += (sender, e) => { };
155+
m_Session.TargetStarted += (sender, e) =>
156+
{
157+
};
156158

157159
m_Session.TargetReady += (sender, e) =>
158160
{

Diff for: package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unity-debug",
33
"displayName": "Debugger for Unity",
4-
"version": "2.6.7",
4+
"version": "2.7.0",
55
"publisher": "Unity",
66
"description": "Unity debugger extension",
77
"license": "MIT",
@@ -11,14 +11,16 @@
1111
"extensionDependencies": [
1212
"ms-vscode.csharp"
1313
],
14-
"dependencies": {
15-
"@types/node": "^10.5.1",
16-
"make": "^0.8.1",
17-
"npm": "^6.1.0",
14+
"devDependencies": {
1815
"vscode": "^1.1.21",
1916
"vscode-debugprotocol": "^1.32.0",
2017
"vscode-nls": "^4.0.0"
2118
},
19+
"dependencies": {
20+
"@types/node": "^10.5.1",
21+
"make": "^0.8.1",
22+
"npm": "^6.1.0"
23+
},
2224
"categories": [
2325
"Debuggers"
2426
],

0 commit comments

Comments
 (0)