debug_settraceback

command
v0.5.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

GOTRACEBACKの値をプログラムから設定するサンプル

GOTRACEBACKは、Goのプログラムがパニックを起こした際の出力の詳細度を制御する環境変数。 プログラムからも設定することが可能で ```runtime/debug.SetTraceback()``` で設定できる。

debug.SetTraceback("all")

指定出来る値として

  • none
  • single (デフォルト)
  • all
  • system
  • crach
  • wer

がある。

REFERENCES

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL