When you’re developing apps sometimes you’ll have errors occur. How do you get any kind of log entry about that?
Well, it turns out help is at hand – there is a PowerShell command Get-SPOAppErrors. This gets you the app errors for a particular App ID. For example:
Connect-SPOService -Url https://example-admin.sharepoint.com
Get-SPOAppErrors -ProductId DEADBEEF-CAFE-BABE-FACE-BEADEDFACADE | Select-Object -first 5 | fl
This will get the first 5 entries for the app with the given GUID and output their details on the PowerShell command window.