We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942fd4a commit c61ea3cCopy full SHA for c61ea3c
src/phpDebug.ts
@@ -1490,8 +1490,12 @@ class PhpDebugSession extends vscode.DebugSession {
1490
this.sendResponse(response)
1491
return
1492
} else if (args.context === 'watch') {
1493
+ // try to translate static variable to special Xdebug format
1494
+ if (args.expression.startsWith('self::$')) {
1495
+ args.expression = '$this::' + args.expression.substring(7)
1496
+ }
1497
// if we suspect a function call
- if (args.expression.includes('(')) {
1498
+ if (!args.expression.startsWith('$') || args.expression.includes('(')) {
1499
if (stackFrame.level !== 0) {
1500
throw new Error('Cannot evaluate function calls when not on top of the stack')
1501
}
0 commit comments