Cannot delete debug.log file

This happens every so often. I'm working on a WordPress plugin and I have debugging on. So any error that happens it will be written in the debug.log file in my wp-content folder.

When I open it and select everything, I cannot delete the contents of this file. I have no idea why. In Sublime and other editors this works, but for PhpStorm it doesn't work.

Any idea what could be the issue?

0
4 comments

Hi there,

You may have ideolog plugin installed and enabled -- AFAIK it prevents manually editing the file.

If you have that plugin, check the settings (there should be an option for this). If that doe snot help, please disable that plugin if you have it enabled, restart IDE and see if that will help.

If still nothing or you do not have that plugin, you need to provide more info.

2

This must be it. It allows editing the files only if smaller than 16KB. I've upped the limit and will see how it behaves.

 

Thanks!

0

I cant find the ideolog plugin on my computer or even ideolog what do i do?

0

Jackjanes333, is it also the case that you can't delete a .log file in PhpStorm? If so, can you delete it using some other file manager?
Also, please clarify what OS you are using.

0

Please sign in to leave a comment.