Skip to content

Instantly share code, notes, and snippets.

@jam1garner
jam1garner / switch-gdb-cheatsheet.md
Last active May 8, 2024 17:43
GDB for Switch Modding Cheatsheet/Tutorial

This is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.

If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.

(If you only need a quick reference Jump to the Appendix)

Installing GDB

First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of

@marcosecchi
marcosecchi / GameObjectExtensions.cs
Created June 15, 2016 12:54
Returns the full hierarchy name of the game object in Unity3D
using UnityEngine;
public static class GameObjectExtensions {
/// <summary>
/// Returns the full hierarchy name of the game object.
/// </summary>
/// <param name="go">The game object.</param>
public static string GetFullName (this GameObject go) {
string name = go.name;