Debug functions using VS Code on Custom UI

Hi,

I recently came across https://developer.atlassian.com/platform/forge/debug-functions-using-vscode/ and it works as described for UI Kit applications. However, when using Custom UI, the variables are not showing up. Is there something different that needs to be done for Custom UI?