I have the following simple php test file:
<?php
$a = 1 ;
$debug = true ;
This file has two linked filenames: testa and testa.php
I have set both of these files with a breakpoint at the third line ($debug = ....)
If I now invoke php testa.php, the script stops at line 3 and a mouseover of line 1's $a will reveal the value of $a (which is of course 1 at that point).
But if I instead invoke php testa, the script stops at line 3 and a mouseover of line 1's $a reveals the attributes of $a (int, etc) - but not a value. However, if I type $a into the debug console, I get the expected value of 1. I can also see the $a = 1 value in the Variables window, just not on mouseover.
Is VSCode actually, as it seems, functioning differently depending upon the extension of a filename? (I don't think VSCode should be enforcing rules about script naming standards. And, anyway, it seems weird that all other debug capabilities except this seem to work fine.)
If VSCode is doing that, is there a setting that I can use to control this?