How to debug the core

posted Mar 30, 2015, 3:49 PM by Lesley Bross   [ updated Mar 31, 2015, 10:17 AM ]
I am trying to debug a question with Landis Core. These are the steps I had to take to get the core to run in the debugger:
1. Copy the Landis.Console-6.1.exe.config file to the build directory
2. Set the Console project as the debug project
3. Copy gdal_csharp.dll to the build directory to avoid the gdal error
4. Add the following lines to App.cs to avoid the gdal error
string path = Environment.GetEnvironmentVariable("PATH");
string newPath = "C:\\Program Files\\LANDIS-II\\GDAL\\1.9;" + path;
Environment.SetEnvironmentVariable("PATH", newPath);
5. Copy extensions.xml and installed extensions to the build directory