DebugSettings.LayoutCycleDebugBreakLevel 屬性

定義

取得或設定值,這個值表示觸發調試程序斷點的配置循環追蹤事件層級。

public:
 property LayoutCycleDebugBreakLevel LayoutCycleDebugBreakLevel { LayoutCycleDebugBreakLevel get(); void set(LayoutCycleDebugBreakLevel value); };
LayoutCycleDebugBreakLevel LayoutCycleDebugBreakLevel();

void LayoutCycleDebugBreakLevel(LayoutCycleDebugBreakLevel value);
public LayoutCycleDebugBreakLevel LayoutCycleDebugBreakLevel { get; set; }
var layoutCycleDebugBreakLevel = debugSettings.layoutCycleDebugBreakLevel;
debugSettings.layoutCycleDebugBreakLevel = layoutCycleDebugBreakLevel;
Public Property LayoutCycleDebugBreakLevel As LayoutCycleDebugBreakLevel

屬性值

列舉值,表示觸發調試程式斷點的配置循環追蹤事件層級。 預設值為 None

範例

public App () { this.InitializeComponent () ;

#if DEBUG DebugSettings.LayoutCycleTracingLevel = LayoutCycleTracingLevel.High;DebugSettings.LayoutCycleDebugBreakLevel = LayoutCycleDebugBreakLevel.Low;#endif }

備註

這個偵錯中斷層級會對應至 DebugSettings.LayoutCycleTracingLevel。 您可以獨立設定追蹤和中斷層級,以啟用想要比偵錯中斷層級更高的追蹤層級的常見案例。

當配置週期當機時,此偵錯中斷層級用於判斷何時會觸發原生調試程式斷點以進行配置相關作業。

只有在原生調試程式附加至進程時,才會觸發調試程序斷點,以避免在未在調試程式下執行或僅附加受管理的調試程式時損毀進程。

適用於

另請參閱