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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.04.2010, 04:06   #1  
Blog bot is offline
Blog bot
Участник
 
25,488 / 846 (79) +++++++
Регистрация: 28.10.2006
kamalblogs: Debugging form controls in Dynamics Ax
Источник: http://kamalblogs.wordpress.com/2010...n-dynamics-ax/
==============

The X++ debugger doesn’t get invoked when placing breakpoint(ctrl+f9) in form controls.

There have been quite a few suggestions to work around this like the one mentioned one below

http://axdaily.blogspot.com/2010/04/...ed-method.html

http://blogs.msdn.com/x/archive/2009...orkaround.aspx

I have also a suggestion which i think can be slightly better also.

Add a method called bp() to global.

static void bp()
{
;
}
Now when you want to debug  a formcontrol, type bp() there and  place a breakpoint(ctrl+f9) in the global method.

This will invoke the debugger without any issue.

The advantage here is

>> You need not bother about “breakpoint”  in the code that is shipped.

>> With hardcoded breakpoints you cannot stop them when you want the code to execute, but with this bp() method you can easily remove it  as it is just (ctrl+f9) based.

>> At the end typing bp() is easy then typing breakpoint




Источник: http://kamalblogs.wordpress.com/2010...n-dynamics-ax/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
kamalblogs: Setting up Form size during runtime in Dynamics Ax Blog bot DAX Blogs 0 07.04.2010 20:05
emeadaxsupport: List of fixes that improve performance of certain features in Dynamics AX 2009 Blog bot DAX Blogs 0 13.10.2009 19:06
CRM DE LA CREME! Configuring Microsoft Dynamics CRM 4.0 for Internet-facing deployment Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05
Developer for Microsoft Dynamics AX Certification Roadmap Blog bot DAX Blogs 1 13.05.2009 16:17
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

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

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

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