Friday, 21 November 2025

Debugging with sys.stdout

Add this to a file to generate a useful debug.log file! 

Useful if you're unable to access a console for printing but still need to know why a file is failing to execute!

sys.stdout = sys.stderr = open(r"C:\Users\Alex.Tavener\Documents\debug.log", "w")

 

Thursday, 6 November 2025

Perforce Diff in Vscode!

 Hate Perforce's default Diff window, with lack of syntax highlighting and interactive merge clicking...?




Yeah well me too, and you'll be glad to know you can set your preferred IDE as the diff tool for Perforce!

Perforce>Edit>Preferences>Diff:
'Other application' > Set to your IDE .exe
Arguments: -d %1 %2

And now look:
Beyoootiful.