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 abc@mox.hyak.washington.edu

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

http://docs.roguewave.com/totalview/2016.01/pdfs/TotalView_for_HPC_Getting_Started_Guide.pdf

http://docs.roguewave.com/totalview/2016.01/pdfs/TotalView_for_HPC_User_Guide.pdf