consistent module variable/parameter naming
add indicator for crashed line in source view
add locals view to log message
merge duplicate code
pass correct frame to logging function