DEV354 Visual Studio 2005: New Enhancements For Debugging Applications

Slides:



Advertisements
Similar presentations
© by Pearson Education, Inc. All Rights Reserved.
Advertisements

Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation. All.
Visual Studio 2005 C# IDE Enhancements Luca Bolognese C# Program Manager Microsoft Corporation.
Visual Studio: Custom debugger visualizers. Creating Debugger Visualizers with Visual Studio : Introduction Code debugging is one of the most important.
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
René Balzano Technology Solution Professional Data Platform Microsoft Switzerland Database Development with SQL Server Data Tools (SSDT)
 Tim Wagner Visual Studio Platform Dev Manager Microsoft Corporation TL32.
Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation.
Visual Studio Tips and Tricks. Credits Zain Naboulsi Microsoft Developer Evangelist isbn:
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
Debugging applications, using properties Jim Warren – COMPSCI 280 S Enterprise Software Development.
2 Visual Studio 2008 IDE Tips and Tricks Sara Ford Program Manager
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
DEV339 Best Practices for Debugging Visual Studio.NET Applications Keith Pleas Architect, Guided Design
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Building More Reliable And Better Performing Web Applications With Visual Studio 2005 Team System Gabriel Marius TLN312 Program Manager Microsoft Corporation.
DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
Chapter Three The UNIX Editors.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
IE Developer Tools Jonathan Seitel Program Manager.
LESSON 2 Microsoft PowerPoint THE GOAL OF THIS LESSON IS FOR STUDENTS TO SUCCESSFULLY CREATE A THEMED PRESENTATION AS WELL AS MAKE MODIFICATION.
CSC 1201 LAB RULES Nouf Aljaffan (C) CSC 1201 Course at KSU.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
1 Advanced.Net Debugging Using Visual Studio, R# and OzCode IT Week, Summer 2015.
Tips and Tricks for Debugging ASP.NET Web Applications and Services Habib Heydarian TLNL05 Program Manager Microsoft Corporation.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft PowerPoint 2010 Lesson 2 Created by Felicia Hudson, Riverside High School--Durham Public Schools.
XSLT ‘Extreme’ TLA327 Dave McMahon MCAD,MCDBA,MVP – Connected Systems Developer.
1/21/2018 6:52 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Dive Into® Visual Basic 2010 Express
Microsoft Visual Studio 2010 Tips and Tricks
Chapter 2: The Visual Studio .NET Development Environment
Chapter 1: An Introduction to Visual Basic 2015
Microsoft Outlook By: Phuong Nguyen.
Visual C# 2005: IDE Enhancements
7/2/2018 3:48 AM BRK3394: Visual Studio Code The most useful (and underused!) tips and tricks Chris Dias Principal Program Manager VS Code © Microsoft.
What’s changed in CRM 2013? [Brief description of contents of eBook]
Microsoft Visual Studio Tips and Tricks
Guide To UNIX Using Linux Third Edition
1. Introduction to Visual Basic
Using Visual Studio with C#
Microsoft Visual Studio IDE Futures
Tips and Tricks in Visual Studio 2017
Debugging with Eclipse
Chapter 2 – Introduction to the Visual Studio .NET IDE
Using Visual Studio and VS Code for Embedded C/C++ Development
Tooling and Diagnostics
Super Charge Your Debugging in Visual Studio
Microsoft Build /6/2018 4:22 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Tech Ed North America /1/ :36 AM Required Slide
What's New in Visual Studio 2005
Visual Studio 2010 SharePoint Development Tools Overview
Microsoft Visual C# IDE Tips and Tricks
How to debug a website using IE F12 tools
Microsoft PowerPoint 2010 Lesson 2.
DEV322 Visual Studio 2005 C# IDE Enhancements
Microsoft Access Tips and Tricks
Debugging with Eclipse
Microsoft PowerPoint 2010 Lesson 2
Presentation transcript:

DEV354 Visual Studio 2005: New Enhancements For Debugging Applications 2004 MVP Global Summit April 4-7, 2004 DEV354 Visual Studio 2005: New Enhancements For Debugging Applications Habib Heydarian (habibh) Scott Nonnenberg (scottno) Program Managers Microsoft Corporation © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

What We’ve Heard… It’s difficult to view data 2004 MVP Global Summit April 4-7, 2004 What We’ve Heard… It’s difficult to view data Too many windows Hard to find the data I want I don’t know what my code is doing Multi-threaded debugging is hard I need to debug XSL Transforms © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

“Too Many Windows” 2004 MVP Global Summit April 4-7, 2004 © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Visual Studio 2002/2003 Many windows to look at data Autos Locals 2004 MVP Global Summit April 4-7, 2004 Visual Studio 2002/2003 Many windows to look at data Autos Locals Watch QuickWatch Etc. © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataTips In 2002/2003 DataTips are great but not enough: 2004 MVP Global Summit April 4-7, 2004 DataTips In 2002/2003 DataTips are great but not enough: Good for viewing simple data Not good for complex objects Have to switch to other windows to view complex objects © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataTips In 2005 The all-in-one debugging tool! 2004 MVP Global Summit April 4-7, 2004 DataTips In 2005 The all-in-one debugging tool! Code in the editor, debug in the editor © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataTips Scott Nonnenberg Program Manager Visual C# 2004 MVP Global Summit April 4-7, 2004 DataTips Scott Nonnenberg Program Manager Visual C# © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

“It’s Hard To Find The Data I Want” 2004 MVP Global Summit April 4-7, 2004 “It’s Hard To Find The Data I Want” © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Viewing Data In 2002/2003 Challenge: Properties versus fields? 2004 MVP Global Summit April 4-7, 2004 Viewing Data In 2002/2003 Challenge: Properties versus fields? Static members versus non-static members? © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Viewing Data Scott Nonnenberg Program Manager Visual C# 2004 MVP Global Summit April 4-7, 2004 Viewing Data Scott Nonnenberg Program Manager Visual C# © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Screen Real Estate Duplicate information Useful information! 2004 MVP Global Summit April 4-7, 2004 Screen Real Estate Duplicate information Useful information! In 2002 and 2003 Use mcee_cs.dat In VS 2005 Use attributes to customize the debugger <System.IO.FileStream>=File=<_fileName> Pos=<_pos> [assembly: DebuggerDisplay ( "File={_fileName} Pos={_pos}", Target=typeof(System.IO.FileStream) )] © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

2004 MVP Global Summit April 4-7, 2004 Too Much Information Internal implementation may not be useful when debugging In Visual Studio 2003: Special case ArrayList, Hashtable In Visual Studio 2005 Use attributes to customize the debugger Default views for most collections Extensible © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Hierarchical View Not Enough 2004 MVP Global Summit April 4-7, 2004 Hierarchical View Not Enough Data windows only show hierarchical view Not ideal for viewing some types DataSet Image XML In Visual Studio 2005 Debugger Visualizers to the rescue! © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Making Data Easier To View 2004 MVP Global Summit April 4-7, 2004 Making Data Easier To View Scott Nonnenberg Program Manager Visual C# © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

“I Don’t Know What My Code Is Doing” 2004 MVP Global Summit April 4-7, 2004 “I Don’t Know What My Code Is Doing” © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Tracepoints Breakpoints and Tracing rolled into one 2004 MVP Global Summit April 4-7, 2004 Tracepoints Breakpoints and Tracing rolled into one Trace + Breakpoint = Tracepoint Instrument your application without changing code When a Tracepoint is hit, you can Print a message Message goes to the Output Window Run a Visual Studio macro Same familiar interface as a breakpoint © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Tracepoints Scott Nonnenberg Program Manager Visual C# 2004 MVP Global Summit April 4-7, 2004 Tracepoints Scott Nonnenberg Program Manager Visual C# © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Tracepoints Message Syntax 2004 MVP Global Summit April 4-7, 2004 Tracepoints Message Syntax Any string “Hello World” Any valid expression {firstName} Predefined messages like $FUNC, $TID “{$FUNC}” Any combination of the above “ID = {this.ID} in function {$FUNC}” © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

“Multi-Threaded Debugging Is Hard” 2004 MVP Global Summit April 4-7, 2004 “Multi-Threaded Debugging Is Hard” © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Breakpoint Filters Advanced feature for debugging 2004 MVP Global Summit April 4-7, 2004 Breakpoint Filters Advanced feature for debugging Distributed applications Multi-process applications Multi-threaded applications Filter breakpoints by Process ID or name Thread ID or name Machine name © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Multi-Threaded Debugging 2004 MVP Global Summit April 4-7, 2004 Multi-Threaded Debugging Scott Nonnenberg Program Manager Visual C# © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

“I Need To Debug XSL Transforms” 2004 MVP Global Summit April 4-7, 2004 “I Need To Debug XSL Transforms” © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Debugging XSL Transforms 2004 MVP Global Summit April 4-7, 2004 Debugging XSL Transforms You can now debug XSL Transformations inside Visual Studio Two ways to do this: Debug a standalone XSLT document Use XML->Debug XSL to start the debugger Debug an XSLT document loaded by an app Step Into XSLTProcessor.Execute() Use normal debugger functionality, e.g., Watch, Stepping, etc. © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Debugging XSL Transforms 2004 MVP Global Summit April 4-7, 2004 Debugging XSL Transforms Scott Nonnenberg Program Manager Visual C# © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Developer Centers on MSDN 2004 MVP Global Summit April 4-7, 2004 Developer Centers on MSDN http://msdn.microsoft.com/vcsharp http://msdn.microsoft.com/vbasic http://msdn.microsoft.com/visualc http://msdn.microsoft.com/vjsharp Debugger Team Blogs http://blogs.msdn.com/scottno http://msdn.microsoft.com/vcsharp/team/blogs/#debugger © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Please fill out a session evaluation on CommNet 2004 MVP Global Summit April 4-7, 2004 Please fill out a session evaluation on CommNet Q1: Overall satisfaction with the session Q2: Usefulness of the information Q3: Presenter’s knowledge of the subject Q4: Presenter’s presentation skills Q5: Effectiveness of the presentation © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Questions? 2004 MVP Global Summit April 4-7, 2004 © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

© 2004 Microsoft Corporation. All rights reserved. 2004 MVP Global Summit April 4-7, 2004 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Reference Slides 2004 MVP Global Summit April 4-7, 2004 © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataTips Navigation Via mouse Via keyboard 2004 MVP Global Summit April 4-7, 2004 DataTips Navigation Via mouse Display DataTip: move mouse over variable Expand item: move mouse over ‘+’ (don’t need to click) Collapse item: click mouse over ‘-’ OR move mouse off current expansion Via keyboard Expand item: → Collapse item: ← Move up/down: ↑↓ © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

2004 MVP Global Summit April 4-7, 2004 DataTips Scrolling Vertical scroll bar appears if > 15 items in DataTip Via Mouse Single-click on arrow to scroll up/down Use mouse wheel to scroll up/down Hover mouse over arrow to auto-scroll Via Keyboard Page Up/Page Down to scroll 15 items at a time Up Arrow, Down Arrow to scroll 1 item at a time © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataTips Editing To go into edit mode: 2004 MVP Global Summit April 4-7, 2004 DataTips Editing To go into edit mode: Single-click on variable name or value OR Right-click item and select “Edit Value” from shortcut menu Press ENTER to apply edit and exit edit mode Press ESC to undo edit and exit edit mode Other debugger windows are updated with new value © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataTips Tips and Tricks 2004 MVP Global Summit April 4-7, 2004 DataTips Tips and Tricks See your code underneath a DataTip Press CTRL to make a DataTip temporarily transparent! Add a variable in a DataTip to the Watch window Right-click variable and select “Add Watch” © 2003-2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.