4.1 Debug (Сode Сontract (editor extension) (Contract.Requires -…
Contract.Ensures - postconditions;
- conditions that must be true when the method gets called;
(invariants on class methods) - remain true while the program is running;
- conditions that must be true when it finishes execution;
Contract.Requires - preconditions;
Contract.Invariant - contracts on Method variables;
must always be at the start of a method;
- is not a precondition and not a postcondition;
performence (Performance Wizard)
is the process of analyzing a
running computer program
gathers information every few CPU cycles.
Sampling is lightweight. It doesn’t continually analyze the CPU or take a deep look into the application and call stack.
procedure; The performance tool adds code to the assemblies being monitored; This code allows examine timing for every method in the assembly as well as calls in and out of the assembly.
.NET Memory allocation
can work in two different ways: sampling and instrumentation.
Resource contention data (Concurrency)
debugging - intelliTrace
configure app insights runtime telementry
Continue when User Unhandled Exception (
temporary disables "Break When Thrown" option
Break When Thrown
remote dll debugging
can cause issues
such as intermittent thread locking