How to Create a Script.log

Visit Website View Our Posts

Script logs in GP can give you a lot of useful information when developing, especially when coding in Dexterity or VS Tools.  I most commonly use them when trying to determine parameters for native Dex procedures and functions.  They also help when trying to code against third party ISV products.  Microsoft sometimes asks you to run one and send to them for certain Tech Support calls as well.

A Script.log is basically a log file of the Dexterity code that runs when you perform a specific task.  There are 2 common ways to create one.

1) The “old” way

  • Log out of GP and change the Dex.ini switch ScriptDebugger=TRUE.
  • Then log back into GP and there will be a DEBUG menu in the toolbar.
  • Go to the spot in GP right before where you want to start logging.
  • Click Debug/Log Script.
  • Perform the task
  • Stop the logging by clicking on debug/Log Scripts again.
  • The log file will be in the GP install Data Folder and be named script.log.
  • Here is a link: https://support.microsoft.com/kb/850774

 

2) My preferred method is to use the Support debugger Tool created by David Musgrave.

  • Install the tool from here: https://blogs.msdn.com/b/developingfordynamicsgp/archive/2009/08/07/support-debugging-tool.aspx
  • Just drop the chunk file into the GP folder and launch GP.
  • You will then have a link to the Support Debugger under the Microsoft Dynamics GP/Tools/Support debugger.  Click it to open.
  • On the front page there are 3 different logs to create.  The script.log is the first one in the Section ‘Microsoft dexterity Options’.
  • Simply move to the point in GP where you want to start logging and click ’Turn On’
  • Perform your task.
  • Click ’Turn Off’
  • Click the link ‘Dexterity Script Logging’ to open the folder where the log was created.  the name will be Script.log
  • Keep in mind that this is only 1 out of a entire suite of features that the Support Debugging Tool offers.  I highly recommend you install and play with it.

by Tidestone Solutions

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Show Buttons
Hide Buttons