Does anyone know what’s the difference between using breakpoints and calling DebugBreak() func. for example in windows platforms ?
Does anyone know what’s the difference between using breakpoints and calling DebugBreak() func. for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The obvious difference is that putting a breakpoint in is an interactive process – it has to be done manually (by each developer who wants to break at a certain point). This is flexible, but manual.
On the other hand, as
DebugBreakis programmatic, it means that it affects all developers who run through that code (which may be appropriate if you always want developers to stop at that point as it means something’s about to go wrong, for example) – but you won’t be able to add breakpoints as flexibly while the code is executing.Use each technique in its place – personally I don’t use programmatically-forced break points very often at all.