Changes

Jump to: navigation, search

OpenMP Debugging in Visual Studio / Team Debug

326 bytes added, 21:59, 10 December 2017
Multiple Processes
[[File:Process-config.png|1000px|center|Process window]]
In order to add a new process you need to find the .pdb files.
 
The debugger needs access to these files of the processes
 
.pdb file holds the debugging and project state info that’s created on compile
[[File:Process-addprocess.png|1000px|center|Process window]]
 
 
You could also attach a process outside of the debugger to the debugger, including processes on a remote device but your inspection ability is limited.
[[File:Process-addprocess.png|1000px|center|Process window]]
You could also set process to automatically start in the debugger – useful for services and custom setup actions
 You could also set process to automatically start in the debugger which is useful for services and custom setup actions.*1. Start regedit*2. Got to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options*3. Select the folder of the application you want to start in debugger*4. In the folder right click and choose New, String Value.*5. Set name of new value from New Value to debugger.*6. Right clikc the new value and choose Modify.*7. On the Edit String dialog box, type vsjitdebugger.exe in the Value data box. [[File:Process-startupprocess.png|center|Process window]]   When you have multiple processes, only one process is active in the debugger, but in order to switch between processes, you must also be in break mode.
[[File:Process-switchprocess.png|1000px|center|Process window]]
When you switch to a process, all windows will show information for that process only
 When you switch to a process, all windows will show information for that process only. When you stop debugging, if the current process was launched from the debugger it will terminate, however if you attached the debugger to the current process (attach to a process outside of vs2017Visual Studios), then the debugger will detach and leave that process running.
==Thread==
28
edits

Navigation menu