To Debug MYOB Acumatica Framework-Based Applications
This topic describes how to link an MYOB Acumatica Framework-based application site to the database and start the MYOB Acumatica Framework application in debug mode.
To Debug an Application from Visual Studio
- In Visual Studio, open the solution of your MYOB Acumatica Framework-based application.
- In the Site folder of the solution, open the web.config file.
- In the
connectionStrings
section of the file, modify the connection string by specifying the credentials to your development database as follows:- For a locally installed Microsoft SQL Server that uses SQL Server
authentication (line breaks are for display purposes
only)
<connectionStrings> <remove name="ProjectX" /> <add name="ProjectX" providerName="System.Data.SqlClient" connectionString="Data Source=(local);Initial Catalog=Project_Catalog; User Id=User_ID; Password=User_Password" </connectionStrings>
- For a locally installed Microsoft SQL Server that uses Windows
authentication (line breaks are for display purposes
only)
<connectionStrings> <remove name="ProjectX" /> <add name="ProjectX" providerName="System.Data.SqlClient" connectionString="Data Source=(local);Initial Catalog=Project_Catalog; Integrated Security=True"/> </connectionStrings>
- For a remote Microsoft SQL Server that uses SQL Server authentication
(line breaks are for display purposes
only)
connectionStrings> <remove name="ProjectX" /> <add name="ProjectX" providerName="System.Data.SqlClient" connectionString="Data Source=Server_Name; Initial Catalog=Project_Catalog; User Id=User_ID; Password=User_Password" </connectionStrings>
- For a locally installed Microsoft SQL Server that uses SQL Server
authentication (line breaks are for display purposes
only)
- In the
system.web
section of the file, set thedebug
attribute of thecompilation
element toTrue
, as shown in the following example.<compilation debug="True" defaultLanguage="c#" numRecompilesBeforeAppRestart="9999" targetFramework="4.8" batch="False" optimizeCompilations="True">
- In Visual Studio, right-click the Site folder of the solution, and click Set as StartUp Project.
- Optional: If you need to debug a server error that throws an exception, do the
following:
- On the toolbar, click .
- In the Exception Settings panel, which opens, expand Common Language Runtime Exceptions, and select the check box for the exception that is thrown (such as System.ArgumentOutOfRangeException).
- Run the solution in the Debug mode.