File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments