You have requested more help on how to troubleshoot and debug CIF V2 Custom Channel Provider code. It is possible to do it with browser developer tools, but we lacked clear documentation on how to do it.
This blog post will walk you through how to debug your CIF code one step at a time.
Sample 01: CIF v2 JavaScript executed from console to ‘Set the Communication Panel mode to docked’. Communication Panel is set to docked.
Sample 02: CIF v2 JavaScript executed from console to invoke notification.
Sample 03: You can also invoke your code function present in your custom channel provider code directly from the console. Below is an example of how launchNewSession function present in channel provider code can be directly executed from console.