Can I set breakpoints to all methods in a class at once in Visual Studio?

There is an addon-less method described here: How to set a breakpoint on a C++ class in the Visual Studio Debugger In short, you can bring up the “New Breakpoint” dialog by pressing Ctrl+K, B and type in ClassName::* to the function field. In Visual Studio 2017 you need to include the namespace in the … Read more

Switching CSS classes based on screen size

CSS Media Queries are definetly the way to go. You can easily separate your CSS based upon the browser size, pixel density, etc. Here’s a list of examples from CSS-Tricks. /* Smartphones (portrait and landscape) ———– */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles */ } /* Smartphones … Read more

What is the difference between hardware and software breakpoints?

This article provides a good discussion of pros and cons: http://www.nynaeve.net/?p=80 To answer your question directly software breakpoints are more flexible because hardware breakpoints are limited in some functionality and highly architecture-dependant. One example given in the article is that x86 hardware has a limit of 4 hardware breakpoints. Hardware breakpoints are faster because they … Read more

Break on a change of variable value

You don’t even need an IDE – you can use “Object.watch()”: Object.Watch Tutorial If you use any one debugger, I’d strongly recommend Firebug. For all your Javascript, HTML and CSS needs :-): http://getfirebug.com/javascript =========================================================== Update for 2019: Object.Watch is Ancient History. Uncoincidentally, it’s unavailable in most contemporary browsers. My personal favorite JS debugging tool these … Read more