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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.10.2012, 03:03   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
The other day a partner asked me about how to start the Microsoft Dynamics NAV 2013 C/AL Debugger for another NAV Server instance than the one used by C/SIDE.

The explanation is below, but first, let’s see how C/SIDE finds the NAV Server instance used for running and debugging.

The Microsoft Dynamics NAV Server Instance used by C/SIDE for Run and Debug

When you Run an application object from the C/SIDE Object designer, C/SIDE is starting a Dynamics NAV Windows client with the application url constructed from:
  • NAV Server as defined in File/Database/Information Server Instance field (see Database Information)
  • Current selected Company in C/SIDE
  • Type and id of the application object you run
Read more here: Starting the Windows Client at the Command Prompt, the URL parameter.

This could be an example:

Microsoft.Dynamics.Nav.Client.exe "DynamicsNAV://localhost:7046/dynamicsnav70/CRONUS International Ltd./RunPage?Page=42"

The rest of the client configurations are taken from the default ClientUserSettings.config, which is typically found at %APPDATA%MicrosoftMicrosoft Dynamics NAV70.

The same principle is used when you start the debugger from within C/SIDE Tools/Debugger/Debug Session.

All this works quite well in more confined setups where you can address different databases and NAV Servers if you are using the same authentication type for them all, but if you want to address different NAV Servers having for example different authentication types, you have to find other solutions – feel free to be inspired by how to.

Define Alternative Ways of Starting the Microsoft Dynamics NAV 2013 C/AL Debugger

Now let’s say you have made a dedicated NAV Test environment with:
  • a separate database
  • dedicated NAV Server(s)
  • another client authentication type than you are using in your Development environment
  • no development environment installed
… and you want to debug some issue that appears in the Test environment from your development environment machine.

The trick is to create a Dynamics NAV Windows client shortcuts on your development machine that specifies:
Ending up in a combined command line description:

Microsoft.Dynamics.Nav.Client.exe -settings:file "DynamicsNAV://< Server>[:<port]>/<ServerInstance>/<Company>/debug"

Or the short-form (all defaults to the .config settings):

Microsoft.Dynamics.Nav.Client.exe -settings:file "DynamicsNAV://///debug"

Adding up to shortcut examples like this:

Microsoft.Dynamics.Nav.Client.exe -settings:"%USERPROFILE%DesktopTestEnv.config" "DynamicsNAV://///debug"

Microsoft.Dynamics.Nav.Client.exe -settings:"%USERPROFILE%DesktopProdEnv.config" "DynamicsNAV://///debug"

Or with full paths like this:

"%ProgramFiles(x86)%Microsoft Dynamics NAV70RoleTailored ClientMicrosoft.Dynamics.Nav.Client.exe" -settings:"%USERPROFILE%DesktopTestEnv.config" "DynamicsNAV://///debug"

Note

The Windows client specifically understands the &ldquo;special&rdquo; /debug url, which is currently a &ldquo;shorthand&rdquo; for starting the client with:
  • -debug (that sets the CURRENTEXECUTIONMODE to Debug and groups the debugger clients separately in the taskbar under the debugger icon)
  • -shownavigationpage:0 (i.e. not showing a role center)
  • And do what&rsquo;s defined in ApplicationManagement (Codeunit 1). LaunchDebugger (Trigger 60)
    • Typically, running the &ldquo;Session List&rdquo; (Page 9506)
The debugger can be started this way because it is working similar to any Microsoft Dynamics NAV solution.

-Hans Kierulff



Источник: http://feedproxy.google.com/~r/Micro...-debugger.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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