Maettu - 2020-11-26

Some issues may not be reproducible on the YAT developer's machine. Or someone might want to debug an issue upfront. Here is how this can be done:

Visual Studio

If not already available, install a version of Visual Studio, e.g. the free Community editon which can be downloaded from https://www.visualstudio.com/vs/community/. The version must at least be the one stated here. Ideally use the latest version, i.e. the version with the latest debugging features.

Debugging a crashed executable

Once an issue happens:

  1. Start Visual Studio
  2. 'Debug > Attach to Process...'
  3. Select the YAT process
  4. 'Attach'
  5. 'Debug > Break All'
  6. Compile as much information as possible
    • Copy-paste the list of threads from 'Debug > Windows > Threads'
    • For each thread copy-paste the 'Debug > Windows > Call Stack'
  7. Provide the information in an existing or new bug item or send it via the email stated in 'Help > About...'

Debugging from source code

Here can be found what version of Visual Studio is currently being used. Make available that or a newer version.

  1. Get the source code tag corresponding to your version of YAT
  2. Open 'YAT.sln' in Visual Studio
  3. Build and run the 'Debug' configuration
  4. Reproduce the issue
  5. Debug the issue in code or proceed as described in previous section