Evidence in the literature indicates that doctoral candidates may experience increased levels of stress and worry about successfully completing their doctorate degrees. As a result, a significant number of doctoral candidates drop out. In our study with 424 doctoral students in computer science (113 women, 311 men), we ask about the frequency of dropout thoughts as an indicator of possible premature termination. By means of machine learning algorithms, we extract variables associated with higher or lower likelihood of dropout thoughts. In particular, satisfaction with advisor’s support, experiencing a crisis, professional self-efficacy, choice of advisor, and perceived meaningfulness of additional work tasks proved to be of central importance. Based on these results, we suggest taking steps to improve professional and social support for doctoral students. Recommendations include implementing more intensive supervision in the early stages of the doctorate, improve the match between doctoral candidates’ expectations and the requirements of the respective institute, monitor progress during the doctorate (e.g., with the help of an advisor agreement), and increase the qualifications of advisors to include leadership and communication skills.