Open main menu

CDOT Wiki β

Changes

GPU621/Sentinel

986 bytes added, 16:24, 25 November 2018
Tools
== '''Tools'''==
When working with the debugger in VS to [[File:debug a multi-threaded application, the two most important windows are: Local variables window (on the left), and the Parallel Watch window (on the right):.JPG | 900px]]
[[File:When working with the debugger in VS to debuga multi-threaded application, the two most important windowsare: Locals window (on the left), and the Parallel Watch window (on the right).JPG | 300px]]On the Locals window, you'll see all your local variable that are declared and visible in the current scope of where the breakpoint is set. On the Parallel Watch window, you'll see all the threads that have spawned and the *yellow arrow* on the left of the thread number is which thread's local variables you're viewing in the Locals window. Double click on another thread number and you'll see it's local variables in the Locals window. We will work with these windows in the coming walkthrough # == '''Walkthrough ('''==  In order to help sink in the knowledge on how to use the debugger, the group will conduct a workshop. For our intents and purposes, the code is very short and simple. Your job is to find the bug with the variable "sum" and investigate why it doesn't have the correct value using the debugger. You might find the bug right off-style)the-bat but the point is to use the debugger to find it or put you in the right path as to what the bug might be. You can download the code file from here: [[File:workshop.cpp]]
Note: Add the link to the configurations
13
edits