Skip to content

Commit 0a0201c

Browse files
committed
Revert eval with context/stackframe as this is not supported by Xdebug.
1 parent 09c826a commit 0a0201c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/xdebugConnection.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,11 +1178,8 @@ export class Connection extends DbgpConnection {
11781178
// ------------------------------- eval -----------------------------------------
11791179

11801180
/** sends an eval command */
1181-
public async sendEvalCommand(expression: string, context?: Context): Promise<EvalResponse> {
1182-
return new EvalResponse(
1183-
await this._enqueueCommand('eval', context ? `-d ${context.stackFrame.level}` : undefined, expression),
1184-
this
1185-
)
1181+
public async sendEvalCommand(expression: string): Promise<EvalResponse> {
1182+
return new EvalResponse(await this._enqueueCommand('eval', undefined, expression), this)
11861183
}
11871184

11881185
// ------------------------------ stream ----------------------------------------

0 commit comments

Comments
 (0)