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

Commit

Permalink
Updated libraries after updating mono.posix in debugger-libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
miniwolf committed Feb 27, 2019
1 parent a449669 commit 99e3ac2
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 11 deletions.
4 changes: 4 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Git: https://github.com/Unity-Technologies/vscode-unity-debug
Changes
-------

2.7.0
=====
- Update debugger libs. This patch includes sending the absolute file path to the debugger agent on native.

2.6.7
=====
- Fix launch settings configuration through resolve.
Expand Down
Binary file modified External/ICSharpCode.NRefactory.CSharp.dll
Binary file not shown.
Binary file modified External/ICSharpCode.NRefactory.CSharp.pdb
Binary file not shown.
Binary file modified External/ICSharpCode.NRefactory.dll
Binary file not shown.
Binary file modified External/ICSharpCode.NRefactory.pdb
Binary file not shown.
Binary file modified External/Mono.Cecil.Mdb.dll
Binary file not shown.
Binary file modified External/Mono.Cecil.Mdb.pdb
Binary file not shown.
Binary file modified External/Mono.Cecil.dll
Binary file not shown.
Binary file modified External/Mono.Cecil.pdb
Binary file not shown.
Binary file modified External/Mono.Debugger.Soft.dll
Binary file not shown.
Binary file modified External/Mono.Debugger.Soft.pdb
Binary file not shown.
Binary file modified External/Mono.Debugging.Soft.dll
Binary file not shown.
Binary file modified External/Mono.Debugging.Soft.pdb
Binary file not shown.
Binary file modified External/Mono.Debugging.dll
Binary file not shown.
Binary file modified External/Mono.Debugging.pdb
Binary file not shown.
Binary file modified External/Mono.Posix.dll
Binary file not shown.
13 changes: 11 additions & 2 deletions UnityDebug/Log.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using System.IO;
using System.Reflection;
using System.Security.AccessControl;
using System.Text;

namespace UnityDebug
{
Expand Down Expand Up @@ -28,11 +30,18 @@ public static void DebugWrite(string message)
Write (message);
}

public static void LogError(string message, Exception ex)
{
Write(message + (ex != null ? Environment.NewLine + ex : string.Empty));
}

public static void Write(string message)
{
var formattedMessage = FormatMessage (message);
lock (logPath) {
File.AppendAllText (logPath, formattedMessage);
var buf = Encoding.UTF8.GetBytes(formattedMessage);
using (var stream = new FileStream(logPath, FileMode.Append, FileAccess.Write, FileShare.ReadWrite))
{
stream.Write(buf, 0, buf.Length);
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions UnityDebug/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
Expand Down Expand Up @@ -38,7 +39,7 @@ public void LogAndShowException(string message, Exception ex)

public void LogError(string message, Exception ex)
{
Log.Write(message + (ex != null ? Environment.NewLine + ex : string.Empty));
Log.LogError(message, ex);
}

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

public string GetNewDebuggerLogFilename()
{
return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location) + "-log.txt");
return Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location) + "-another-log.txt");
}
}

Expand Down
4 changes: 3 additions & 1 deletion UnityDebug/UnityDebugSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ public UnityDebugSession()
m_ResumeEvent.Set();
};

m_Session.TargetStarted += (sender, e) => { };
m_Session.TargetStarted += (sender, e) =>
{
};

m_Session.TargetReady += (sender, e) =>
{
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "unity-debug",
"displayName": "Debugger for Unity",
"version": "2.6.7",
"version": "2.7.0",
"publisher": "Unity",
"description": "Unity debugger extension",
"license": "MIT",
Expand All @@ -11,14 +11,16 @@
"extensionDependencies": [
"ms-vscode.csharp"
],
"dependencies": {
"@types/node": "^10.5.1",
"make": "^0.8.1",
"npm": "^6.1.0",
"devDependencies": {
"vscode": "^1.1.21",
"vscode-debugprotocol": "^1.32.0",
"vscode-nls": "^4.0.0"
},
"dependencies": {
"@types/node": "^10.5.1",
"make": "^0.8.1",
"npm": "^6.1.0"
},
"categories": [
"Debuggers"
],
Expand Down

0 comments on commit 99e3ac2

Please sign in to comment.