From 69ffdb91b23d37b7c0015cdeb039eec4a48035f0 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 9 Nov 2016 11:11:40 -0500 Subject: simplify debugging --- README.md | 5 +++++ src/StardewModdingAPI/StardewModdingAPI.csproj | 20 +++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 425946f9..de77f10f 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,11 @@ SMAPI uses build configuration derived from the [crosswiki mod config](https://g to detect your current OS automatically and load the correct references. Compile output will be placed in a `bin` directory at the root of the git repository. +### Debugging a local build +Rebuilding the solution in debug mode will copy the SMAPI files into your game directory. Starting +the `StardewModdingAPI` project with debugging will launch SMAPI with the debugger attached, so you +can intercept errors and step through the code being executed. + ### Preparing a release To prepare a crossplatform SMAPI release, you'll need to compile it on two platforms. See _[crossplatforming a SMAPI mod](http://canimod.com/guides/crossplatforming-a-smapi-mod#preparing-a-mod-release)_ diff --git a/src/StardewModdingAPI/StardewModdingAPI.csproj b/src/StardewModdingAPI/StardewModdingAPI.csproj index bbb41ee3..4fdd2ff6 100644 --- a/src/StardewModdingAPI/StardewModdingAPI.csproj +++ b/src/StardewModdingAPI/StardewModdingAPI.csproj @@ -79,9 +79,6 @@ icon.ico - - StardewModdingAPI.Program - $(HOME)/GOG Games/Stardew Valley/game @@ -252,15 +249,28 @@ - + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + - + + + Program + $(GamePath)\StardewModdingAPI.exe + $(GamePath) + + + + + + + \ No newline at end of file -- cgit