I'm trying to debug both server and client side locally at the same time.
I'm using Node, Express, and socket.io.
The main.js under the server runs OK in debug mode.
When I run the client I get an error :
" Uncaught ReferenceError: io is not defined C:/Users/Shmulik/IdeaProjects/ch-12/public/index.html:55"
The code at this lie is:
"socket = io.connect(');"
At the beginning of the index.html file I have the code:
When I run the index.html in the browser without debugger it runs OK.
I found how to make this line work, but I don't understand why it works perfectly without the debugger.
Instead of: "<script src="/socket.io/socket.io.js"></script>"
I wrote the full path: "<script src="C:\\Users\\Shmulik\\IdeaProjects\\node_modules\\socket.io\\node_modules\\socket.io-client\\dist\\socket.io.js"></script>"