Debugging PMDO: Difference between revisions

From PMDOWiki
IDK (talk | contribs)
create page
 
IDK (talk | contribs)
formatting fixes
Line 1: Line 1:
PMDO Mac Debug Setup:
= PMDO Mac Debug Setup =
 
Note: This has only been tested with Jetbrains Rider and Visual Studio Code
Note: This has only been tested with Jetbrains Rider and Visual Studio Code
Made by: Trio-#4442
Made by: Trio-#4442


1. 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`.
# 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`.
2. Recursively clone the PMDO repository using `git clone --recurse-submodules -j8 https://github.com/audinowho/PMDODump.git`.
# Recursively clone the PMDO repository using `git clone --recurse-submodules -j8 https://github.com/audinowho/PMDODump.git`.
3. Copy all of the `.dylib` files in  `PMDC/PMDC/runtimes` folders to `PMDC/PMDC`. Here’s what your file structure should look like:
# Copy all of the `.dylib` files in  `PMDC/PMDC/runtimes` folders to `PMDC/PMDC`. Here’s what your file structure should look like:
 
 
 
 
 


 
# In your `~/.gitignore_global` file, add the following files for git to ignore:
 
<pre>
 
 
 
4. In your `~/.gitignore_global` file, add the following files for git to ignore:
==================
# Debug logs (npm, yarn)
# Debug logs (npm, yarn)
*.log
*.log
Line 32: Line 24:
Thumbs.db
Thumbs.db
.DS_Store
.DS_Store
==================
</pre>
You may want to include more. Modified from here.
You may want to include more. Modified from here.
                                                                        
                                                                        
5. 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.
 
Jetbrains Rider (requires paid subscription)
1. Debug should run out of the box. Set the configuration to PMDC and click “Debug,” and you should be all ready to go!
 
 


== Jetbrains Rider ==
(requires 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
== Visual Studio Code ==
1. 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.
# 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.
2. Create `.vscode/launch.json` in the root folder of  `PMDODump`  In launch.json, copy everything from here to the file.
# Create `.vscode/launch.json` in the root folder of  `PMDODump`  In launch.json, copy everything from here to the file.


3. In the `Run and Debug` tab in VSCode, you can click on the green arrow to begin debugging.
# In the `Run and Debug` tab in VSCode, you can click on the green arrow to begin debugging.

Revision as of 04:15, 29 November 2022

PMDO Mac Debug Setup

Note: This has only been tested with Jetbrains Rider and Visual Studio Code

Made by: Trio-#4442

  1. 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`.
  2. Recursively clone the PMDO repository using `git clone --recurse-submodules -j8 https://github.com/audinowho/PMDODump.git`.
  3. Copy all of the `.dylib` files in `PMDC/PMDC/runtimes` folders to `PMDC/PMDC`. Here’s what your file structure should look like:
  1. 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

(requires paid subscription)

  1. 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

  1. 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.
  2. Create `.vscode/launch.json` in the root folder of `PMDODump` In launch.json, copy everything from here to the file.
  1. In the `Run and Debug` tab in VSCode, you can click on the green arrow to begin debugging.