Debugger and live preview no longer work due to corrupted files

One day GDevelop stopped letting me use the debugger (and hot reload). My preview starts, but I get this message:

“No preview running. Run a preview and you will be able to inspect it with the debugger.”

By using the browser debugging tools, I see errors like this:

debugger-client/hot-reloader.js, C:\Users\User\AppData\Local\Temp\GDTMP--1\preview/websocket- 
debugger-client/hot-reloader.js) failed: Error: UNKNOWN: unknown error, open 
e.<computed> @ 59.1b4fd8c2.chunk.js:2

I tried rebooting, uninstall/reinstall, tried the newest nightly build, but nothing helped.

I did a Windows filesystem scan, and it detected corrupt files in the “C:\Users\User\AppData\Local\Temp\GDTMP–1\preview\websocket-debugger-client” directory. I have attempted to repair these, but the errors exist even after the repair.


I’m not sure what caused this problem, so I don’t know if it is GDevelop related or not. This could be caused by a failing SSD, but I haven’t seen any other corrupted files except for these.

I’m creating this post in case other people have experienced this. If you have, please reply (especially if you have a fix) but also it will help understand if the cause was related to GDevelop.

Hallelujah, I got my debugger back!

I rebooted Windows into SafeMode and ran the “sfc /scannow” tool.

I’m still not sure what caused this, but I will update if I learn more.

Weird, if you have the corrupted file somewhere please send us, we will be able to compare with a normal file.
In any case the files used for preview are saved in tmp directory, this folder is cleaned when you restart the PC. (A real shutdown, not a hybrid sleeping mode).
It’s fine to clean this folder time to time if windows don’t do it for you.

In your case the restart of GD and reinstall have no effect because the file still exist, so the engine don’t make a new copy.

1 Like

My debugger hasn’t worked in months. The game itself works fine but takes over two to three minutes to load. It’s fine cause it’s a big project that’s well optimized and I just nitpick with an FPS counter and debug with that.