How to use the debugger with proxy object ? #1617
              
                Unanswered
              
          
                  
                    
                      DepkaCZ
                    
                  
                
                  asked this question in
                Questions and Help
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
this bugs me for a week now. Consider this basic nuxt middleware code:
When you put breakpoint on the first if line you wiill see that the user variable is undefined:

If i put
debuggerbefore the if statement i can see that in theuservariable isProxy(_UsrImpl(...))|But why ? The getCurrentUser should return Promise according to the code
(https://github.com/vuejs/vuefire/blob/main/src/auth/user.ts#L160)
? Where does the Proxy even come from and why is it such pain to debug ?
I find this seriously confusing.
Beta Was this translation helpful? Give feedback.
All reactions