Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visit our Focus Rooms Evaluation of Implementation Proposals by Dynamics AX R&D Solution Architecture & Industry Experts Gain further insights on Dynamics.

Similar presentations


Presentation on theme: "Visit our Focus Rooms Evaluation of Implementation Proposals by Dynamics AX R&D Solution Architecture & Industry Experts Gain further insights on Dynamics."— Presentation transcript:

1 Visit our Focus Rooms Evaluation of Implementation Proposals by Dynamics AX R&D Solution Architecture & Industry Experts Gain further insights on Dynamics AX Industry Solution Offerings Resolution Guidance on Solution Roadblocks Networking Focus Topic Highlight Business Intelligence Tuesday 2.15pm – 5.45pm Risso 6C Risso 8A Risso 7B Risso 7A Risso 6C Risso 6A/B

2 DISCLAIMER ©2011 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. Other names and brands may be claimed as the property of others. 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. All pre-release product release dates and features specified are preliminary based on current expectations, and are subject to change without notice. Microsoft may make changes to specifications and product descriptions at any time, without notice. Sample code included in this presentation is made available AS IS. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS PRESENTATION. Microsoft products are not intended for use in medical, life saving, or life sustaining applications.

3 NICE,FRANCE LEARN | INSPIRE | INNOVATE TECHNICAL CONFERENCE 2011

4 DEBUGGING PETER VILLADSEN ANEES ANSARI SESSION CODE : BRK215 PROGRAM MANAGERS MICROSOFT CORPORATION

5 Today we will show you… A few legacy debugger enhancements Debugging business logic in C# Debugging X++ running in CIL Other Visual Studio benefits Debugging Enterprise Portal user controls

6 Components in action today

7 Pains and challenges Isaac – The Business Application Developer AX need a good debugging story to be a viable development platform This applies to both CIL and Pcode

8 Concepts & Definitions Visual Studio is the preferred development platform for managed code development CIL is Common Intermediate Language, i.e. the (relatively) low-level code produced by managed compilers Pcode is the intermediate form interpreted by code running on the client tier Services expose functionality in X++ classes

9 When to Use a Debugger Use a debugger when you need to find problems in the code for your business logic: – Use VS for CIL code on server and for managed code written in other languages – Use the legacy X++ debugger for code running in the interpreter – Use the VS debugger for debugging EP controls

10 Product Demos DEMO 1: Dynamics AX debugger A few minor improvements A major caveat Attaching to client Show how proxies work with debugging Attaching to the server Setting breakpoints in X++ code Expression Evaluator Other VS debugger goodies DEMO 4: Other VS benefits Profiling Code Coverage DEMO 5: Debugging Enterprise Portal user controls Common settings Debugging managed code

11 The Dynamics AX X++ Debugger The Dynamics AX X++ debugger soldiers on for another release Code maintenance and a few new features have been added The main change concerns security: – Win 7 and 2008 server and newer OSs place new security restrictions on session management – In short: You need to be part of the Microsoft Dynamics AX Debugging Users Windows security group or the Administrator group

12 The Dynamics AX X++ Debugger

13 Demo 1: The Legacy X++ Debugger PersonaPain Points and ChallengesFeatures CoveredResults and Benefits Isaac, Viktor, Nandita Security issues with new operating systems User group membership It works, but only if you add yourself to the group Isaac, Viktor, Nandita Using.NET objects from X++ was not well supported Problems relating tables to linked tables Automatic.ToString() invocation Automatic linkage information display Hovering and inspecting managed objects works seamlessly No need to write down RecId values

14 demo Legacy X++ Debugger

15 Debugging Business Logic written in C# This scenario covers client or server calls out into managed code, where the managed code uses proxies to access the X++ business logic: Dynamics AX kernel (client or server).NET code First Call Clr interop Proxy Clr interop Proxy First Call Clr interop Proxy Clr interop Proxy

16 Setup Start the developer AX client Open the VS project from the AOT Set breakpoints as applicable Attach VS to the AX kernel (client or server) process Make the call

17 Setup Note: Administrator privileges are required for debugging the server – VS must be started as admin to connect the debugger to the server process

18 Demo 2: Debugging business logic in C# PersonaPain Points and ChallengesFeatures CoveredResults and Benefits Isaac, Viktor Developing Business Applications without a debugging story is meaningless VS debugging, proxies, attaching to process The full power of the VS debugger is available

19 demo Debugging Business Logic in managed code

20 Demo 3: Debugging X++ CIL PersonaPain Points and ChallengesFeatures CoveredResults and Benefits Isaac, Viktor Finding bugs in X++ should not be more difficult if code is run in CIL (rather than in Pcode) VS debugging of X++ CIL on server The full power of the VS debugger is available

21 demo Debugging X++ CIL

22 Demo 4: Other VS benefits PersonaPain Points and ChallengesFeatures CoveredResults and Benefits Isaac, ViktorNeed automated unit testsVS supports unit testsSleep at night Isaac, Viktor Performance analysis VS performance analysis features Find performance bugs

23 demo Other VS benefits

24 Demo 5: Debugging Enterprise Portal user controls PersonaPain Points and ChallengesFeatures CoveredResults and Benefits Isaac (Developer) Difficult to debug user controls Dynamics AX framework and tools for Visual Studio Rich debugging experience enabled via framework and tools enhancements

25 Top Tips from the Session Use managed code in your development where needed: You can debug with full fidelity Remember to add yourself to the Microsoft Dynamics AX Debugging Users group Run VS as administrator to run on the server Managed debugging is not supported on production servers Use the unit test environment Bottlenecks can be found using VS as well

26 What We Showed Today… The Dynamics AX X++ debugger is still there, for debugging interpreted X++ code on client or server.NET code is debugged using VS 2010: – For code authored in C# – For code authored in X++, but executing in CIL The VS debugger provides several important features that the business logic developer may leverage

27 With this Release you now can… Continue to use the legacy debugger as applicable Use Visual Studio 2010 to debug business logic authored in managed languages – This is what is expected – Allows leveraging all the goodness of VS Use Visual Studio 2010 to debug X++ code running as CIL – Provides options that the Dynamics AX X++ debugger does not – It ties the AX development story closer to the mainstream VS story

28 Related sessions BRK216: Developing in.NET Managed code and other X++ enhancements BRK211: The Developer Tools Experience Part 2: VS tools CHK213: X++ Language Q&A CHK204: Microsoft Dynamics AX Development CHK201: Programming models and Developer tools BRK221: Code Upgrade tools for developers

29 Visit our Focus Rooms Evaluation of Implementation Proposals by Dynamics AX R&D Solution Architecture & Industry Experts Gain further insights on Dynamics AX Industry Solution Offerings Resolution Guidance on Solution Roadblocks Networking Focus Topic Highlight Business Intelligence Tuesday 2.15pm – 5.45pm Risso 6C Risso 8A Risso 7B Risso 7A Risso 6C Risso 6A/B

30 © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows 7 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.

31 Q&A

32 Today we want to… Show you the debugging story business logic executing in AX – Focus on the.NET story – You already know the debugging story for X++

33 What did we do in this release? Developed a debugging story that is based on Visual Studio 2010 for debugging business logic executing in.NET Made a few improvements to the Microsoft Dynamics AX X++ debugger

34 Assembly Hotswapping Assembly hotswapping allows the server to keep running, even when new versions of assemblies used by business logic are deployed Prerequisite:

35 Without Hotswapping

36 With Hotswapping

37 Product Demos


Download ppt "Visit our Focus Rooms Evaluation of Implementation Proposals by Dynamics AX R&D Solution Architecture & Industry Experts Gain further insights on Dynamics."

Similar presentations


Ads by Google