简体   繁体   中英

(Visual Studio) How can I tell which parts of my c++ program ran and which didn't?

I keep getting an exception but the place where it breaks doesn't help me. I need to figure out what the last ran line of code is in the main.

Is there something that highlights lines of code that run? Or some king of similar debug feature?

edit: visual studio 2015 community. I also have 2013 pro

Press F-11 it allows you to "step into" your code. And veiw what the computer is doing line by line, it will show you exactly wich line your crashing on. And usually why

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM