What is Break mode?
When changes are made to the code in an application, the way to be able to view how those changes have changed the way of execution is Break Mode. In break mode, a snapshot of the running application is taken in which the status and values of all the variables is stored.
What are the options for stepping through code?
The applications consist of various activities which need to be performed during the execution. Some of them are composite activities which need to be executed in parallel or conditionally. These activities are classified as ParallelActiviy and ConditionalActivity.
The two options of debugging handle these activities differently as follows:
Branch stepping:
In this, when the control gets transferred to another concurrent activity, it happens without being noticed. Only the activities in the currently selected branch are stepped through although other activities in the workflow may be executing concurrently. If you want to debug any concurrent activity, then a breakpoint needs to be placed appropriately. Stepping continues in that branch when the breakpoint is triggered.
In this, when the control gets transferred to another concurrent activity, it happens without being noticed. Only the activities in the currently selected branch are stepped through although other activities in the workflow may be executing concurrently. If you want to debug any concurrent activity, then a breakpoint needs to be placed appropriately. Stepping continues in that branch when the breakpoint is triggered.
Instance stepping:
In this, you can step through as well as debug the concurrent activities. You can even notice the change in control that occurs when concurrently executing activities get executed. Instance stepping option should be chosen while debugging state machine workflows.
In this, you can step through as well as debug the concurrent activities. You can even notice the change in control that occurs when concurrently executing activities get executed. Instance stepping option should be chosen while debugging state machine workflows.
What is a Breakpoint?
Using Breakpoints you can break or pause the execution of an application at a certain point.
A breakpoint with an action associated with it is called a ‘tracepoint’. Using tracepoints, the debugger can perform additional actions instead of having an application only enter a break mode.
Define Debug and Trace Class.
Debug Class (System.Diagnostics)
It provides a set of methods and properties that help debug your code. This class cannot be inherited.
It provides a set of methods and properties that help debug your code. This class cannot be inherited.
Trace Class (System.Diagnostics)
It provides a set of methods and properties that help you trace the execution of your code. This class cannot be inherited. For a list of all members of this type, see Trace Members.
It provides a set of methods and properties that help you trace the execution of your code. This class cannot be inherited. For a list of all members of this type, see Trace Members.
What are Trace switches?
Trace switches are used to enable, disable and filter the tracing output. They are objects can be configured through the .config file.
Explain how to configure Trace switches in the application's .config file.
Switches are configured using the .config file.
Trace switches can be configured in an application and the trace output can be enabled or disabled.
Configuring involves changing the value of the switch from an external source after being initialized.
The values of the switch objects can be changed using the .config file.
Trace switches can be configured in an application and the trace output can be enabled or disabled.
Configuring involves changing the value of the switch from an external source after being initialized.
The values of the switch objects can be changed using the .config file.

0 Comments:
Post a Comment