Hello Rob,
Thank you for reporting this. So far when I tried it, it worked well. The only case that occurred to me when it could be a problem is when it's a fatal exception which means PHP is not really running anymore, which is not what you are explaining.
To help us locate the issue, may I ask for a few more details?
PHP and Xdebug version: If you are unsure about the exact setup, you can find a quick guide on how to check it in our documentation: https://docs.devsense.com/vscode/debug/#local-php-installation
The internal IDE stack trace: This would immensely help us find the exact line. Could you please open Help -> Toggle Developer Tools, switch to the Console tab, and check if there is a red error/stack trace related to e.getAttribute? If so, please copy-paste or screenshot it here.
Steps to reproduce: Any particular case or a short code snippet where this happens.
Thank you!