[Bug] Cannot change Debug Logging settings
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?
- Install Vencord on Discord.
- Open Discord settings.
- Navigate to "Voice & Video" settings within Discord settings.
- Locate the "Debug Logging" setting.
- Attempt to enable or disable "Debug Logging" by toggling the switch.
- Observe that the "Debug Logging" setting does not change state or have any effect while Vencord is installed.
- Uninstall Vencord.
Repeat steps 2-6.
Observe that "Debug Logging" now works as expected and can be enabled or disabled.
Errors
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
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:
- Click on the toggle button to disable the Debug Logging and wait until the "Cancel"/"Okay" popup appears.
- Open the DevTools and a breakpoint on the "Okay" button
onClickevent. - Keep going over the Call Stack until you find the
setDebugLoggingfunction. - Add a breakpoint or pause the code execution at the start of the
setDebugLoggingfunction and run the function next to theawait(without theawait):
(0, a.Z)("debug_logging_enabled", e, u.Z.getDebugLogging()),
r.Z.dispatch({
type: "AUDIO_SET_DEBUG_LOGGING",
enabled: e
}))
- Discord will immediately close and when it comes back it will ask you to sign in again.
- Debug Logging is now disabled:
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
someone PLEASE help me fix this.
I've seen this happen with regular unmodded discord as well
this has already been fixed bruh