Logging, tracing, instrumentering, debugging og fejlfinding Instrumentation End-to-End Tracing Historical Debugging Semantic Logging.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
 Ricky Buch Program Manager Microsoft Corporation  Kevin Michael Woley Program Manager Microsoft Corporation PC50.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Building Web APIs in Windows Azure Name Title Microsoft Corporation.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons.
What are Access Web App What are “Apps for Office” Microsoft Access Access “Apps for Office” Value of “Apps for Office” Apps for Office How it all works.
Configuring PHP on IIS7 Making your application rock on IIS7 Taking advantage of the Windows platform Q&A at Open Space.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Tess Ferrandez ASP.NET Escalation Engineer Microsoft Session Code: WIA402.
2 Debugging Performance Issues, Memory Issues and Crashes in.net Applications Tess Ferrandez - Norlander Support Escalation Engineer Microsoft Session.
Welcome Demo – Published Windows Store Apps on Dynamics AX 2012 Why build your own app? Demo – Building a Windows Store and Windows Phone 8 App Building.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
demo Receive Inventory Export Parse and Normalize.
Integrating NAV 2013R2 and Office 365 Office 365 Single Sign-on NAV as an app NAV online document store.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
demo ETL file Event Providers Control/Status Control/Status ETW Session 2. Any component that has been instrumented with Event.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
announcing Dev Manager Do I understand what we’ve built? Developer Can I bet on using this shared component? Testers What’s changed since I last.
Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
Agile tooling and Portfolio Management Agile Tooling Basics Agile Portofolio Management Kanban Team Room.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Msdevcon.ru#msdevcon. ИЗ ПЕРВЫХ РУК: ДИАГНОСТИКА ПРИЛОЖЕНИЙ С ПОМОЩЮ ИНСТРУМЕНТОВ VISUAL STUDIO 2012 MAXIM GOLDIN Senior Developer, Microsoft.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Integration in the Cloud Overview Relay Topic/Queues BizTalk Services (preview)
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
2 Common ASP.NET production issues and how to troubleshoot them with WinDbg Tess Ferrandez - Norlander Support Escalation Engineer Microsoft Session Code:

MODULE 10 – PROJECT SERVER
Debugging and troubleshooting Azure applications using Visual Studio
Microsoft Build /20/2018 5:17 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Maximizing Windows 7 Performance: Troubleshooting Tips
Tooling and Diagnostics
Title of Presentation 12/2/2018 3:48 PM
System Admin Best Practices for NAV 2013 R2
Introduction to the new WPA user interface
2/17/2019 7:32 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Create rich, data-driven Web apps with ASP.NET 4.5 Web Forms
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
DevOps better together with System Center 2012 SP1 and Visual Studio
Developing Windows Azure Applications with Visual Studio
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
Office 365 Development July 2014.
Making Windows Azure Relevant to IT Professionals
Advanced app and driver debugging
Presentation transcript:

Logging, tracing, instrumentering, debugging og fejlfinding Instrumentation End-to-End Tracing Historical Debugging Semantic Logging

Instrumentation

The ability to monitor or measure a running system Trace program flow Log errors Diagnose performance issues Consumers System Administrators Major program flow events Critical issues Performance Counters Developers Program flow with state Verbose – call parameters etc.

You are blind without! Fixing bugs faster Documentation Quality

Instrumentation - Tools Developer Log files IntelliTrace Windows EventLog Memory Dumps Event Tracing for Windows System Administrators Windows EventLog System Service Center

What to Instrument Program flow Major state changes Life-cycle events Start, stop, restart Some exceptions Not validation errors etc. Security related events Login attempts Logging Errors Focus on external dependencies I/O, Database, Web Service Requests Correlate entries!!!

How to Log - Log Levels Critical System is unable to run insufficient resource access to file system database connectivity application start up failures invalid config settings Administrator attention required Error Exceptions that interrupts the user's actions Warning Resumable “errors” Login attempts SLA violation Information Life-cycle events Major events Trace Program flow with state Order initiated Order approved Order send Debug Verbose “debugging” information Executed SQL statements Full HTTP requests Anything s

End-to-End Tracing

Demo TraceSource, E2E format, Service Trace Viewer, Cross-Process Correlation, EventLog, Azure Live Tracing

System.Diagnostics Trace/Debug.WriteLine TraceSource improvements Service Trace Viewer E2E Tracing Correlation of events CorrelationManager Common.Logging log.Debug(m => m("my expensive to calculate argument is: {0}", CalculateMessageInfo())); System.ServiceModel.OperationInvoker.CodeGeneration System.ServiceModel.Routing System.Transactions System.Web.Services.Asmx System.Windows.Data System.Windows.DependencyProperty System.Windows.Documents System.Windows.Freezable System.Windows.Interop.HwndHost System.Windows.Markup System.Windows.Media.Animation System.Windows.NameScope System.Windows.ResourceDictionary System.Windows.RoutedEvent System.Windows.Shell System.Workflow System.Workflow.Runtime.Hosting System.Workflow.Runtime System.Workflow.Runtime.Tracking System.Workflow.Activities System.Workflow.Activities.Rules System.Xaml.Hosting CardSpace Microsoft.Transactions.Bridge System.Activities System.Activities.Core.Presentation System.Activities.DurableInstancing System.Activities.Presentation System.ComponentModel.Composition System.IdentityModel System.IO.Log System.Net System.Net.Cache System.Net.Http System.Net.HttpListener System.Net.Sockets System.Net.WebSockets System.Runtime System.Runtime.Serialization System.Runtime.Serialization.CodeGeneration System.Security.Cryptography.Xml.SignedXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.MessageLogging

Azure Live Tracing <source name="MyTraceSource" switchValue="Warning"> <add name="azureListener" type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, …" />

Historical Debugging

File Bug Resolve as “No Repro” Hand-off to Test Test Code Hand-off to Dev Investigate Bug Write Code It Works on My Machine!

IntelliTrace Capabilities Capture debugger state information during program execution IL is instrumented via Profiling API Records program execution flow Debugger, ASP.NET, ADO.NET, Exception, File, Registry, etc. Records program data Parameters Return values Low overhead for collection Visual Studio Ultimate only debugging support

How IntelliTrace Works Application IntelliTrace File CollectionPlan.xml IntelliTrace Recorder

Demo IntelliTrace - Historical debugger

Debugging Symbols Symbol Files.PDB files Used during the debugging process Includes Source File Names, Line Numbers and Local Variable Names You should always keep your symbol files around Symbol Server Central location for storing your PDB files Essentially this is just a file share Microsoft’s public symbol server:

Memory Dump Analysis

Debugging Tools for Windows WinDBG, ADPlus, sos, Hawkeye….loadby sos clr !clrstack –s !do 00f846bc !dumpstack !gcroot 00f846bc

Demo Dump File Analysis with Visual Studio

Windows Error Reporting (WER)

Event Tracing for Windows

Unified logging facility provided by the OS Kernel-level buffers Since Windows 2000 Also used by drivers Insanely-fast cycles per entry ~2.5% CPU usage for sustained rate of 10,000 events/sec on a 2GHz PC Provider, Consumer, Controller model Over 700 providers in Win7, ~900 in Win8! System-wide collection

System.Diagnostics.Tracing Managed support from.NET 4.0+ EventSource EventListener Semantically rich Strongly-typed! Captures stack traces Works everywhere Windows Store Apps, Windows Phone, Azure.. Semantic Logging Application Block

ETW flow ETL file Event Providers Control/Status Control/Status ETW Session 2. Any component that has been instrumented with Event Tracing API 1. Collection of configurable in-memory buffers that is managed by the kernel 3. Controls logging sessions and enables/disables providers 5. GUI trace analysis via graphs and summary tables 6. CLI trace analysis via actions XML file Control/Status PerfView System and Symbol Information Merged ETL file Control/Status Post Processing Action 4. Metadata injection

Demo _NT_SYMBOL_PATH, PerfView, Event Tracing for Windows

What’s new in Visual Studio 2013 Debugging and Diagnostics Edit and Continue support for x64 Task debugging Graphics Diagnostics Code Maps with Call Stacks

Demo Parallel Task Debugging

Unhandled Exceptions System.Windows.DispatcherUnhandledException += (sender, e) => { // Log it }; System.AppDomain.CurrentDomain.UnhandledException += (sender, e) => { // Log it }; System.Threading.Tasks.TaskScheduler.UnobservedTaskException += (sender, e) => { // Log it };

Glimpse

Logging, tracing, instrumentering, debugging og fejlfinding Instrumentation End-to-End Tracing Historical Debugging Semantic Logging

Evaluation Create a Text message on your phone and send it to 1919 with the content: DE I liked it a lot Session Code Anders Performanc e (1 to 5) Match of technical Level (1 to 5) Relevance (1 to 5) Comments (optional) Evaluation Scale: 1 = Very bad 2 = Bad 3 = Relevant 4 = Good 5 = Very Good! Questions: Speaker Performance Relevance according to your work Match of technical level according to published level Comments

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Other GREAT web-oriented tools

Dump Files Analysis Dump file summary information Support for mixed-mode dump files IL Interpreter for managed property evaluation Operating system and CLR version information Module Information Search modules