Debugging PMDO: Difference between revisions
From PMDOWiki
No edit summary Tag: Reverted |
Reverted edits by IDK (talk) to last revision by Shitpost Sunkern Tags: Rollback Reverted |
||
Line 5: | Line 5: | ||
Made by: Trio-#4442 | Made by: Trio-#4442 | ||
# Download | # Download .NET 5.0 https://dotnet.microsoft.com/en-us/download/dotnet/5.0. Confirm that it is installed using the command <code>dotnet --list-runtimes</code>. | ||
# Recursively clone the PMDO repository using <code>git clone --recurse-submodules -j8 https://github.com/audinowho/PMDODump.git</code>. | # Recursively clone the PMDO repository using <code>git clone --recurse-submodules -j8 https://github.com/audinowho/PMDODump.git</code>. | ||
# Copy all of the <code>.dylib</code> files in <code>PMDC/PMDC/runtimes</code> folders to <code>PMDC/PMDC</code>. Here’s what your file structure should look like: [[File:Debug_Mac_FolderStructure.png|frameless]] | # Copy all of the <code>.dylib</code> files in <code>PMDC/PMDC/runtimes</code> folders to <code>PMDC/PMDC</code>. Here’s what your file structure should look like: [[File:Debug_Mac_FolderStructure.png|frameless]] | ||
Line 24: | Line 24: | ||
.DS_Store | .DS_Store | ||
</pre> | </pre> | ||
You may want to include more. Modified from | You may want to include more. Modified from here. | ||
The following steps below depend on your IDE of choice. See each section below. | The following steps below depend on your IDE of choice. See each section below. |
Revision as of 01:40, 8 December 2022
PMDO Mac Debug Setup
Note: This has only been tested with Jetbrains Rider and Visual Studio Code
Made by: Trio-#4442
- Download .NET 5.0 https://dotnet.microsoft.com/en-us/download/dotnet/5.0. Confirm that it is installed using the command
dotnet --list-runtimes
. - Recursively clone the PMDO repository using
git clone --recurse-submodules -j8 https://github.com/audinowho/PMDODump.git
. - Copy all of the
.dylib
files inPMDC/PMDC/runtimes
folders toPMDC/PMDC
. Here’s what your file structure should look like: - In your
~/.gitignore_global
file, add the following files for git to ignore:
# Debug logs (npm, yarn) *.log # Editor artifacts .*.sw[a-z] *~ .#* .vscode .idea # OS files Thumbs.db .DS_Store
You may want to include more. Modified from here.
The following steps below depend on your IDE of choice. See each section below.
Jetbrains Rider
Jetbrains Rider requires a paid subscription.
- Debug should run out of the box. Set the configuration to PMDC and click "Debug", and you should be all ready to go!
Visual Studio Code
- Install the C# extension. There is a possibility that you have to downgrade to an older version like
v1.24.4
or modify the settings in Omnisharp settings discussed here? But I personally wasn’t able to figure out how to make it work. - Create
.vscode/launch.json
in the root folder ofPMDODump
In launch.json, copy everything from here to the file. - In the
Run and Debug
tab in VSCode, you can click on the green arrow to begin debugging.