Open topic with navigation
Setting Debugging Properties in Visual Studio
When you select an IntervalZero Real-Time Debugger in Visual Studio, additional debugging options are displayed in the Property Pages for the application. You can:
- Choose to override default memory allocation behavior to allocate memory from the RTX local memory pool, which uses deterministically allocated memory.
- Set the ideal processor on which the main thread of the debugged process will run.
- Set the affinity mask that specifies the processor(s) on which the debugged process will run.
To set debugging properties:
- Right-click on the application name in the Solution Explorer window. The Property Pages dialog appears.
- Click Configuration Properties > Debugging.
- Under Debugger to launch, choose one of the IntervalZero Real-Time Debugger options:
- IntervalZero Remote Real-Time Debugger – use to debug RTSS applications on a target system remotely. See Remote Debugging with Visual Studio for more information.
- IntervalZero Real-Time Debugger – use to debug RTSS applications. Note that this debugger is automatically selected when the RTSSDebug configuration of the project is selected.
- Configure the debugging properties:
- Memory – Choose to override default Subsystem memory allocation behavior to allocate memory from the RTX local memory pool, which uses deterministically allocated memory.
- Processor – Set the ideal processor on which the main thread of the debugged process will run. Use an integer to identify the processor and be sure to use its system-wide processor number. If the Processor field is not set, the main thread will default to the first RTSS processor.
- Affinity – Set the affinity mask as a list of comma-separated processor numbers. This specifies the processor(s) on which the debugged process threads will run. Use integers to identify the processors and be sure to use system-wide processor numbers. The main thread of the debugged process will start on the ideal processor if set. If the ideal processor is not set, the main thread will run on the first RTSS processor in the provided affinity mask.
For example: if a system is configured such that 1 core is assigned to windows (0) and 3 cores are assigned to RTSS (1,2,3), by default the main thread will start on processor 1. However, if the debugger’s affinity mask is set to 2,3, and the Processor field is not set, the main thread will run on processor 2.
NOTE: The Subsystem determines whether any of the specified processors are valid and will use only valid processors from a given affinity mask. An error is returned if no valid processors are given.
- Click OK.
- Save the project.