Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It is possible to automatically break upon entering code from specific file/class?

I have a badly written file in c++ that I need to debug in Visual Studio. I would want break execution of my program always when code from that file is called. Entire file (by that i mean .cpp + .h files) is a huge class and helping enums that are used by that class. Is there a way to set debbuger to break when program is reaching code from that file or class other than manually setting breakpoints on each method?

like image 288
Marmyst Avatar asked Dec 08 '25 19:12

Marmyst


1 Answers

Visual Studio allows class breakpoints

enter image description here

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

like image 123
Marco A. Avatar answered Dec 10 '25 08:12

Marco A.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!