Skip to content

Commit 05d1d5e

Browse files
committed
improve debugger
1 parent dfe6c65 commit 05d1d5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/debugger/AttachDebugSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export class AttachDebugSession extends EmmyDebugSession implements ExprEvaluato
446446
}
447447
const variable = node.toVariable(ctx);
448448
response.body = {
449-
result: variable.name,
449+
result: variable.value,
450450
variablesReference: variable.variablesReference
451451
};
452452
this.sendResponse(response);

src/debugger/AttachProtol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class LuaXTable extends LuaXObjectValue {
400400

401401
toVariable(ctx: ComputeContext): DebugProtocol.Variable {
402402
let ref = ctx.handles.create(this);
403-
return { name: "table", value: "table", variablesReference: ref, type:"object" };
403+
return { name: this.name, value: "table", variablesReference: ref, type:"object" };
404404
}
405405
}
406406

0 commit comments

Comments
 (0)