DIS Inject problems
Breakpoints are not hit
Problem
After clicking Attach in the DIS Inject window and running the code, the breakpoints are not hit.
Possible solutions
Projects need to be built in Debug mode.
DIS will run the code, so you only need to make sure the configuration is set to Debug.
In case multiple SLScripting processes are used, make sure you use DIS 2.44 or higher, as DIS will then attach to all SLScripting processes.
Could not find SLScripting process, is DataMiner running?
Problem
After clicking Attach in the DIS Inject window, you get the following error:
Visual Studio needs to run as administrator to perform this action.
Cause
Microsoft Visual Studio is not allowed to attach to the DataMiner SLScripting process.
Solution
Run Microsoft Visual Studio as an administrator.
Changing the privilege level of VSLauncher.exe
Exit Microsoft Visual Studio.
In Windows Explorer, go to C:\Program Files (x86)\Common Files\microsoft shared\MSEnv.
Right-click VSLauncher.exe and select Properties.
In the Properties dialog box of VSLauncher.exe, go to the Compatibility tab.
In the Settings section, select the checkbox Run this program as an administrator.
Click OK.
Associating XML files with VSLauncher.exe
Right-click an XML file and select Open With > Choose Default Program.
In the Open With dialog box, click Browse.
Go to C:\Program Files (x86)\Common Files\microsoft shared\MSEnv, select VSLauncher.exe and click Open.
Select the checkbox Always use the selected program to open this kind of file and click OK.