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

Commit

Permalink
Fix regression within attach unity debugger. This is necessary when E…
Browse files Browse the repository at this point in the history
…ditorInstance.json does not exist.
  • Loading branch information
miniwolf committed Jul 11, 2018
1 parent e523734 commit 43bf68a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
8 changes: 8 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Git: https://github.com/Unity-Technologies/vscode-unity-debug
Changes
-------

2.6.3
=====
- Fix regression within attach unity debugger. This is necessary when EditorInstance.json does not exist.

2.6.2
=====
- Missing EditorInstance.json file will no longer crash the program, instead it will terminated and report steps the user should take.

2.6.1
=====
- Updated debugger-libs to stop hovering from stack overflowing, due to miss use of NRefactory.
Expand Down
10 changes: 5 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.1",
"version": "2.6.3",
"publisher": "Unity",
"description": "Unity debugger extension",
"license": "MIT",
Expand All @@ -12,11 +12,11 @@
"ms-vscode.csharp"
],
"dependencies": {
"@types/node": "^10.5.1",
"make": "^0.8.1",
"@types/node": "^10.0.8",
"npm": "^6.0.0",
"vscode": "^1.1.17",
"vscode-debugprotocol": "^1.29.0",
"npm": "^6.1.0",
"vscode": "^1.1.18",
"vscode-debugprotocol": "^1.30.0",
"vscode-nls": "^3.2.2"
},
"categories": [
Expand Down
10 changes: 6 additions & 4 deletions typescript/attach.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ function startSession(context: ExtensionContext, config: any) {
if (!string) {
return;
}
config.name = string;
config.request = "launch";
config.type = "unity";
config.__exceptionOptions = exceptions.convertToExceptionOptionsDefault();
const config = {
"name": string,
"request": "launch",
"type": "unity",
"__exceptionOptions": exceptions.convertToExceptionOptionsDefault()
}
debug.startDebugging(undefined, config)
.then(function (response) {
console.log(response);
Expand Down

0 comments on commit 43bf68a

Please sign in to comment.