AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.01.2015, 18:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
goshoom: Tips for CIL debugging: No variables displayed
Источник: http://dev.goshoom.net/en/2015/01/ci...-no-variables/
==============

Because AX 2012 sometimes executes CIL generated from X++ instead of X++ itself, debugging must be done in a debugger that understands CIL and it almost always means Visual Studio. AX developers sometimes complain about the need of switching between two debuggers, that loading of symbols for debugging is slow and so on. Although these concerns are valid for the time being (things will change in AX7), using Visual Studio for debugging AX code also offers many options that you don’t get with the X++ debugger. It’s sometimes even worth forcing code to run in CIL just to be able to use the VS debugger.

Before actually going to the fancy stuff I want to show, let’s first address a problem that you might run into.

Imagine that you’re debugging a class with an instance variable but you don’t see anything in the list of variables:



It’s actually a quite common problem, but I’ve never tried to investigate why it happens, because there is a simple solution: add the variable to the Watch window.

If you see the variable in code, right-click it and choose Add Watch.



You can also type variable names into the Watch window:



This not only adds variables to the Watch windows, but they’ll finally appear among Locals as well.





Источник: http://dev.goshoom.net/en/2015/01/ci...-no-variables/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
mfp: X++ Debugging Tips and Tricks #2 – xSession::xppCallStack() Blog bot DAX Blogs 6 23.11.2015 11:37
goshoom: Tips for CIL debugging: Collection classes Blog bot DAX Blogs 0 11.01.2015 18:12
mfp: X++ Debugging Tips and Tricks #4 - Reading uncommitted data Blog bot DAX Blogs 3 28.06.2014 00:24
mfp: X++ Debugging Tips and Tricks Blog bot DAX Blogs 2 24.09.2013 13:01
mfp: X++ Debugging Tips and Tricks #1 – Breakpoint in Info.add() Blog bot DAX Blogs 1 24.09.2013 11:00

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:42.