Vencord icon indicating copy to clipboard operation
Vencord copied to clipboard

[Bug] Cannot change Debug Logging settings

Open samerop opened this issue 9 months ago • 1 comments

What happens when the bug or crash occurs?

The bug occurs when I try to change the Debug Logging settings in Discord while Vencord is installed. Regardless of whether I try to enable or disable Debug Logging in Discord's Voice & Video settings, the setting does not change or have any effect. Vencord is preventing the Debug Logging settings from being toggled. When I uninstall Vencord, the Debug Logging settings in Discord work correctly.

What is the expected behaviour?

I expect Vencord/Discord to allow me to change the Debug Logging settings in Discord even when Vencord is installed. Debug Logging should be able to be enabled or disabled as normal, and function correctly, regardless of whether Vencord is installed or not. It shouldn't be blocked or interfered with by Vencord.

How do you recreate this bug or crash?

  1. Install Vencord on Discord.
  2. Open Discord settings.
  3. Navigate to "Voice & Video" settings within Discord settings.
  4. Locate the "Debug Logging" setting.
  5. Attempt to enable or disable "Debug Logging" by toggling the switch.
  6. Observe that the "Debug Logging" setting does not change state or have any effect while Vencord is installed.
  7. Uninstall Vencord.

Repeat steps 2-6.

Observe that "Debug Logging" now works as expected and can be enabled or disabled.

Errors

discord.com-1741098296100.log

Request Agreement

  • [x] I am using Discord Stable or tried on Stable and this bug happens there as well
  • [x] I am a Vencord Developer

samerop avatar Mar 04 '25 14:03 samerop

It looks like the AUDIO_SET_DEBUG_LOGGING dispatch event is not triggering correctly. Also, for some reason, the closeModal event is not being triggered at all, so the Debug Logging popup remains open until you click on "Cancel".

What worked for me as a (very hacky) workaround was:

  1. Click on the toggle button to disable the Debug Logging and wait until the "Cancel"/"Okay" popup appears.
  2. Open the DevTools and a breakpoint on the "Okay" button onClick event.
  3. Keep going over the Call Stack until you find the setDebugLogging function. Image
  4. Add a breakpoint or pause the code execution at the start of the setDebugLogging function and run the function next to the await (without the await):
  (0, a.Z)("debug_logging_enabled", e, u.Z.getDebugLogging()),
  r.Z.dispatch({
      type: "AUDIO_SET_DEBUG_LOGGING",
      enabled: e
  }))
  1. Discord will immediately close and when it comes back it will ask you to sign in again.
  2. Debug Logging is now disabled:

Image

RatserX avatar Mar 14 '25 00:03 RatserX

This is still happening

stable 448060 (cb3f3f3) Host 1.0.9209 x64 (69183) Build Override: N/A Windows 11 64-bit (10.0.26100) Vencord 228b85a standalone

xlol221x avatar Sep 23 '25 19:09 xlol221x

someone PLEASE help me fix this.

xbasvj avatar Sep 27 '25 03:09 xbasvj

I've seen this happen with regular unmodded discord as well

aragubas avatar Oct 13 '25 01:10 aragubas

this has already been fixed bruh

Vendicated avatar Oct 13 '25 01:10 Vendicated