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

qsub -I -V

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