Medical treatment for sleepwalking is necessary when it's caused by an underlying medical problem. In some instances, medications may be prescribed to control sleepwalking, Sleepwalking treatments. If you notice your child sleepwalking, try to gently guide them back to bed, anticipatory awakenings are the preferred treatment options for long-term treatment of people.