Below abc is your userid and xyz is your hyak group.

This page shows how to use the totalview graphical debugger on hyak via X11 forwarding
This page assumes that you know how to use a debugger on your desktop. (Replace abc with your userid.)

ssh -X

srun -p xyz -A xyz --time=2:00:00 --mem=100G --pty /bin/bash

module load totalview_2016

To use the totalview debugger, with the gcc, g+, gfortran, ifort, icpc and icc compilers, compile your code with the -g option. For example for g+:

g++ -g -o myprogram myprogram.cpp

totalview myprogram

More details are at