Capture Screen with ffmpeg / screencast

On Windows you can record your screen to an .mp4 file using ffmpeg:

  • Download ffmpeg for Windows from http://ffmpeg.zeranoe.com/builds/
  • Run e.g. with following command: ffmpeg -f gdigrab -framerate 30 -show_region 1 -i desktop out.mp4

(the capture devices

video="UScreenCapture"

and

video="screen-capture-recorder"

did not work for me on my Windows 10 machine, they were not even listed in the available video devices.)

For details see ffmpeg's https://trac.ffmpeg.org/wiki/Capture/Desktop

On Windows 10, you can also try to use Windows' Screen Recording to record a window. Just press Win+G and check Yes, this is a game. Afterwards you get a Record button. Your recordings will be saved to %HOMEPATH%\Videos\Captures

Start an application with the debugger attached

You can automatically attach the Visual Studio Just-In-Time debugger when a process is started on Windows. The steps are simple:

  • Open the Registry Editor
  • navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
  • Select the application you want to debug:
    • Either it already exists as subkey, then use that one
    • Or, you have to create a new key in Image File Execution Options with the name of the application (e.g. chrome.exe)
  • Create a new string value with name debugger and name vsjitdebugger.exe

regedit_debugger