refactored debug view to use the original VariablesView