Immediate window & redirect
Redirect to text file

-
Set the option Redirect all Output Window text to the Immediate Window.
We find it inTools → Options → Debugging → General(fifth to last item). -
Open the
Immediate Window:Ctrl + Alt + IorDebug → Windows → Immediate Window
Enter a command like the following in the Immediate window:
> Tools.LogCommandWindowOutput /on C:\mylogfile.txt
To stop writing to the file, enter the following command in the Immediate window:
> Tools.LogCommandWindowOutput /off
> is needed, you should type it.
https://stackoverflow.com/questions/2586933/how-do-i-redirect-output-from-the-visual-studio-debugger
basic debug command
print the value of var
? var

浙公网安备 33010602011771号