question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Documentation] Enabling debug logs in socket.io server

See original GitHub issue

Hi, Is there any way to debug socket issue by getting debug logs of socket.io?

Also The documentation doesn’t tell much about the transport error. So someone please tell me what causes this transport error and more information about this disconnect reason.

Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
renehucommented, May 4, 2022

Use below to log info about socket: $ DEBUG=socket* node YOUR_FILE

Use below to log all info: $ DEBUG=* node YOUR_FILE

1reaction
ngustavocommented, Oct 18, 2022

DEBUG=* is not working on 4.5.1 In my case it shows Playwright logs but not socketio server logs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging and debugging - Socket.IO
The basic idea is that each module used by Socket.IO provides different debugging scopes that give you insight into the internals. By default, ......
Read more >
Debugging on the server | Socket.IO Cookbook
To get started with debugging on the server side, you will need to have Node and Socket.IO installed and an existing app that...
Read more >
Socket.IO - Logging & Debugging - Tutorialspoint
Socket.IO uses a very famous debugging module developed by ExpresJS's main author, called debug. Earlier Socket.IO used to log everything to the console ......
Read more >
Socket.io client debugging? - Stack Overflow
I have enabled the logs by entering this code into my web browser but now I am not able to disable it. Whenever...
Read more >
Socket.io inspection techniques to simplify realtime app ...
To turn on Socket.io's client-side logging, you can open the JavaScript console in the Chrome developer tools and type localStorage.debug = '*' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found