how to take a picture of the screen when bugs happen while testing?

Options
I heard that there are different bug tracking tools and libraries, but I'm basically concentrated on free and open source ones. Any advice?

Comments