When i try to make static class property or imitate static variable by making variable that will be a function member and part of the object respectively, then i get debugge