Turns out <MATLABROOT>\bin\matlab.exe
actually runs <MATLABROOT>\bin\w64\matlab.exe
. So if I ask Visual Studio to run that, breakpoints are triggered as expected.
Running MATLAB this way under the debugger is a lot slower than any other way, but at least now I can debug my code.