Page 1 of 1

Server crashing

Posted: Tue Oct 16, 2018 10:33 pm
by velocity
Okay, so my server is crashing randomly and the console log says nothing. It is probably some of my plugins but I want to narrow it down to what and where. How should I proceed?

Re: Server crashing

Posted: Wed Oct 17, 2018 4:18 am
by L'In20Cible
First step would be to disable your plugins one-by-one until the crashes stops, then debug the guilty one.

Re: Server crashing

Posted: Wed Oct 17, 2018 10:05 am
by velocity
Yeah, I only have one plugin running and since server crash randomly it is hard to just comment out some of the code and wait... Some crash can occur after half an hour. I wonder if there is a different method to make it output something.

Re: Server crashing

Posted: Wed Oct 17, 2018 1:55 pm
by velocity
Well I figured it out, or more like "so far so good". I was just wondering what you do if you don't have a log.

Re: Server crashing

Posted: Thu Oct 18, 2018 1:40 am
by L'In20Cible
velocity wrote:Well I figured it out, or more like "so far so good". I was just wondering what you do if you don't have a log.

You debug your code by adding debug messages everywhere in an attempt to identify the exact line/context that causes it. There is unfortunately no magic solution.