使用診斷追蹤服務
為了記錄而使用 enableDiagnosticTrace() 與 disableDiagnosticTrace() 指令集服務時,必須在外覆服務中使用服務,以便診斷該服務。
在下例中,Thing1 的 MyService 服務將受到外覆。
// enableDiagnosticTrace():BOOLEAN
var state = enableDiagnosticTrace();
// result: BOOLEAN
result = Things["Thing1"].MyService();
// disableDiagnosticTrace():BOOLEAN
var state = disableDiagnosticTrace();