Presentation is loading. Please wait.

Presentation is loading. Please wait.

Debugging tips and tricks

Similar presentations


Presentation on theme: "Debugging tips and tricks"— Presentation transcript:

1 Debugging tips and tricks
Jiří Pokorný

2 Get Process ID (PID) and its command line
Start debugging Get Process ID (PID) and its command line Debug > Start new instance Attach to process/Detach all Start Windows Service (Debugger.Launch)

3 Process and Thread in debugging
Process Window Threads window Call stack per Thread Freeze/Thaw thread Switch to Thread Windows Parallel Watch/Stack

4 Debugging without source code
What is the PDB? Get the pdb from symbol server Symbols cache Use dotPeek build in Symbol server to decompile source code

5 Debug assembly binding
Use Modules window to verify loaded symbols Assembly Binding Log Viewer (Fuslogvw.exe)

6 Debugging web applications
Debugging of both browser and server JavaScript debugging allowed only for attached debugger JavaScript „debugger;“ W3wp process, its command line and application pool Window Exception Settings – break on custom exception

7 Beakpoint location/move Breakpoint for each thread
Simple tips Beakpoint location/move Breakpoint for each thread Override ToString method DebugerDisplay, DebuggerBrowsabel, DebuggertypeProxy Break on function name Startup arguments Visual studio hosting process

8 Installed with Visual Studio Standalone Install usually fails
Remote debugger Installed with Visual Studio Standalone Install usually fails Needs identical credentials on both machines Attach to process only on different machine

9 Solarwinds 30+ products for IT Management
Microsoft stack: C#, MS SQL, AngularJS Brno office – Solarwinds R&D center Career opportunities Visit our booth


Download ppt "Debugging tips and tricks"

Similar presentations


Ads by Google