smarter stacktrace popup configuration

  Fixes #602