Devtools
Devtools
Devtools controls verbose logs and the event inspector.
The default is off.
eventInspector plus localStorage['augeoChatSdk:devtools'] = '1' is the override.
Prerequisites
| Item | Requirement |
|---|---|
| Host page | Serves HTTPS and can load a third-party script |
| Persona | loyalty-concierge |
| Bundle global | window.AugeoChatSdkLoyaltyConcierge |
| Browser | Supports localStorage and the page console |
Load a pinned production loyalty bundle first.
Read Capabilities for the shared true / false / object contract.
See Debugging with devtools for panel use.
Values
| Value | Effect |
|---|---|
| omitted | Logs and inspector off |
false | Logs and inspector off |
true | Enables verbose logs and the inspector |
| object | Overrides verboseLogging and eventInspector |
Parameters
| Parameter | Default | Type |
|---|---|---|
verboseLogging | false unless devtools: true | boolean |
eventInspector | false unless devtools: true | boolean |
devtools: true turns both flags on.
An options object does not imply either flag.
verboseLogging
Pass true to set the logger to debug.
const { AugeoAssistant } = window.AugeoChatSdkLoyaltyConcierge;
new AugeoAssistant({
container: '#chat-host',
auth: { getToken: () => bearerToken },
capabilities: { devtools: { verboseLogging: true } },
});Mount and runtime logs emit at debug level.
The inspector stays closed unless eventInspector is also true.
eventInspector
Pass true to mount the event inspector.
capabilities: { devtools: { eventInspector: true } }The inspector opens on mount. Verbose logging stays off.
Set the localStorage override to open the panel without that flag.
localStorage['augeoChatSdk:devtools'] = '1';Reload after you set the flag.
The panel opens even when eventInspector is omitted.
localStorage.removeItem('augeoChatSdk:devtools');The override is cleared.
The panel stays closed unless eventInspector is true.
Enable both
Pass true to turn on logs and the inspector together.
capabilities: { devtools: true }Debug logs start. The inspector mounts.
Related pages
| Topic | Page |
|---|---|
| Product scope | Overview |
| Constructor fields | Configuration |
| Placement | Surfaces |
| Capability list | Capabilities |
| History | History |
| Privacy | Privacy |
| Message actions | Message actions |
| Chat | Chat |
| Suggestions | Suggestions |
| Wishlist | Wishlist |
| Event options | Event options |
| Analytics | Analytics |
| Support | Support |
| Recovery | Recovery |
| DOM events | Events |
| Public types | API |