Understanding how heatwaves impact on different aspects of mating behaviour and fertility is getting increasingly important. In this context, laboratory fertility and mating experiments involving manipulation and exposure of insects to different thermal conditions are common procedures. To conduct such experiments practical methods such as dyes are needed for an easy, non-invasive discrimination of individuals. We report here a study measuring the effect of an extended heat stress applied to males on several parameters of mating behaviour and fertility of laboratory populations of Drosophila subobscura derived from two distinct European locations. We found highly detrimental effects of heatwave on mating behaviour—with longer (courtship and copulation) latencies and lower mating occurrence but no changes in mating duration—and fertility, with reduced fecundity and reproductive success. Furthermore, we also tested the efficacy of food dye as a marker for individual discrimination and mating occurrence. While food dye did not allow to infer the occurrence of a mating based on a transfer of coloration from male to female, it did not affect mating and fertility, attesting its utility has a method for discriminating individuals within mating experiments in the context of thermal studies. Importantly, despite the fact that the heatwave was only applied in males, we observed an impact on behaviour of females that mated with stressed males, by often refusing their nuptial feeding. This opens possibilities for further integrated research on the changes of female and male mating behaviour and fertility under different thermal scenarios.