Can it break automatically when entering code from a specific file / class?

I have a poorly written file in C ++ that I need to debug in Visual Studio. I would like to always interrupt the execution of my program when the code from this file is called. The whole file (by that I mean .cpp + .h files) is a huge class and aiding enums that are used by this class. Is there a way to disable debbuger when a program reaches code from that file or class, other than manually setting breakpoints for each method?

+3


source to share


1 answer


Visual Studio allows class breakpoints

enter image description here



This will allow you to split the executable lines of your class as soon as its code is called. Constructors included.

+5


source







All Articles