During my debug session I want to follow what's written to an OUTPUT file in Visual Studio.
To do this, I step into my code, shortly after the OPEN OUTPUT statement, and try to open the file in Visual Studio.
But Visual Studio refuses to open the file. It reports that the file is "in use by another process". Same does every other application being able to open a file with read-only access.
I don't seem to be able to give correct parameters to the OPEN OUTPUT statement. I tried "OPEN OUTPUT SHARING WITH READ ONLY". However, whenever the file is created, it it's never created with FileShare.Read access (see screen recording attached to this message).
What am I doing wrong?
Your help is appreciated.