Skip to content

Commit 6633087

Browse files
committed
Testing property_value
1 parent 534f6e3 commit 6633087

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/phpDebug.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,13 +1484,14 @@ class PhpDebugSession extends vscode.DebugSession {
14841484
}
14851485
} else if (args.context === 'clipboard') {
14861486
const uuid = randomUUID()
1487-
await connection.sendEvalCommand(
1487+
const eres = await connection.sendEvalCommand(
14881488
`$GLOBALS['eval_cache']['${uuid}']=var_export(${args.expression}, true)`
14891489
)
1490-
const ctx = await stackFrame.getContexts() // TODO CACHE THIS
1491-
const res = await connection.sendPropertyValueNameCommand(`$eval_cache['${uuid}']`, ctx[1])
1490+
response.body = { result: eres.result.value, variablesReference: 0 }
1491+
//const ctx = await stackFrame.getContexts() // TODO CACHE THIS
1492+
//const res = await connection.sendPropertyValueNameCommand(`$eval_cache['${uuid}']`, ctx[1])
14921493
// force a string response
1493-
response.body = { result: res.value, variablesReference: 0 }
1494+
//response.body = { result: res.value, variablesReference: 0 }
14941495
this.sendResponse(response)
14951496
return
14961497
} else {

0 commit comments

Comments
 (0)