Unable to add Breakpoint To if Statement in Websocket
I have a websocket in angular that I have setup and the issue I am running into is that although I have the websocket returning an array, I am not able to set that value to a class variable in the websocket. The variable keeps coming back as undefined. The variable I am trying to populate is playlistQueue and it seems to be undefined inside the websocket this.socket.on method. Furthermore, When debugging with chrome, I am unable to attach a debugger to that code as it allows me to add a debugger on this.playlistQueue = [...this.playlistQueue, ...webhook];
but not the if statement checking if this.playlistQueue
is undefined. Thanks in advance for the help.