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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.09.2013, 23:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
mfp: X++ Debugging Tips and Tricks #1 – Breakpoint in Info.add()
Источник: http://blogs.msdn.com/b/mfp/archive/...-info-add.aspx
==============
This trick is probably the first every X++ developer learns, so it deserves to be the first on the list of X++ Debugging Tips and Tricks.

Suppose an X++ exception occurs and you want to know why. The error is written to the Infolog. Double-clicking the line in the Infolog window will bring you to the line that threw the exception. Sometimes it is trivial to see the cause just by looking at the code. Other times it is not, and you will need the entire context including the call stack and variables to figure out what the cause is.

Set a breakpoint in the add method on the Info class – and rerun the scenario. When the exception is thrown your breakpoint is hit, and you can perform the autopsy.



This post is provided AS-IS, and confers no rights or warranties.




==============
Источник: http://blogs.msdn.com/b/mfp/archive/...-info-add.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 24.09.2013, 11:00   #2  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5788 (200) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
-учитель, мне нужен мудрый совет!
-носи зимой двое штанов
(с) КВН
За это сообщение автора поблагодарили: lev (2).
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
mfp: X++ Debugging Tips and Tricks Blog bot DAX Blogs 2 24.09.2013 13:01
Microsoft Dynamics CRM Team Blog: Tips and Tricks in Microsoft Dynamics CRM 2011 Dialogs-Part I Blog bot Dynamics CRM: Blogs 0 18.01.2012 04:34
sumitax: EP Debugging Tips and Tricks –Part III Blog bot DAX Blogs 0 13.10.2010 14:05
sumitax: EP Debugging Tips and Tricks –Part II Blog bot DAX Blogs 0 30.09.2010 09:05
sumitax: EP Debugging Tips and Tricks –Part I Blog bot DAX Blogs 0 13.08.2010 21:06
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 11:12.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.