Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Debugging with Visual Studio Compiling and Linking with On Time RTOS-32 |
Debugging with Visual StudioWhen Visual Studio has been started using DbgShell, its integrated debugger is automatically configured to act as a cross debugger for On Time RTOS-32. In general, cross debugging within Visual Studio works exactly the same way as native debugging. To start debugging, make sure the active project configuration is Win32 Debug and that the project is up-to-date. Menu command Build, Start Debugger, can then be used to start a debug session. When Visual Studio asks for the executable file to debug, enter Debug\project-name.exe. The program will be downloaded to the target and all of the Visual Studio Debugger features are available. Please note that the project should not be configured for remote debugging within Visual Studio. Redirecting the debugger is performed by DbgShell and not by Visual Studio. When the target is suspended at a breakpoint, the debugger's context is set to the current thread. If you need to inspect local variables of another thread, set a breakpoint in that thread and run to that breakpoint. Global data is always accessible in the debugger, regardless of the current thread.
|