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

Commit 43bf68a

Browse files
committed
Fix regression within attach unity debugger. This is necessary when EditorInstance.json does not exist.
1 parent e523734 commit 43bf68a

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

Changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Git: https://github.com/Unity-Technologies/vscode-unity-debug
66
Changes
77
-------
88

9+
2.6.3
10+
=====
11+
- Fix regression within attach unity debugger. This is necessary when EditorInstance.json does not exist.
12+
13+
2.6.2
14+
=====
15+
- Missing EditorInstance.json file will no longer crash the program, instead it will terminated and report steps the user should take.
16+
917
2.6.1
1018
=====
1119
- Updated debugger-libs to stop hovering from stack overflowing, due to miss use of NRefactory.

package.json

Lines changed: 5 additions & 5 deletions
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.1",
4+
"version": "2.6.3",
55
"publisher": "Unity",
66
"description": "Unity debugger extension",
77
"license": "MIT",
@@ -12,11 +12,11 @@
1212
"ms-vscode.csharp"
1313
],
1414
"dependencies": {
15+
"@types/node": "^10.5.1",
1516
"make": "^0.8.1",
16-
"@types/node": "^10.0.8",
17-
"npm": "^6.0.0",
18-
"vscode": "^1.1.17",
19-
"vscode-debugprotocol": "^1.29.0",
17+
"npm": "^6.1.0",
18+
"vscode": "^1.1.18",
19+
"vscode-debugprotocol": "^1.30.0",
2020
"vscode-nls": "^3.2.2"
2121
},
2222
"categories": [

typescript/attach.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,12 @@ function startSession(context: ExtensionContext, config: any) {
103103
if (!string) {
104104
return;
105105
}
106-
config.name = string;
107-
config.request = "launch";
108-
config.type = "unity";
109-
config.__exceptionOptions = exceptions.convertToExceptionOptionsDefault();
106+
const config = {
107+
"name": string,
108+
"request": "launch",
109+
"type": "unity",
110+
"__exceptionOptions": exceptions.convertToExceptionOptionsDefault()
111+
}
110112
debug.startDebugging(undefined, config)
111113
.then(function (response) {
112114
console.log(response);

0 commit comments

Comments
 (0)