Currently, when debugging, we use a dev+ build of DeSmuME 0.9.11 (an older release) to attach gdb to, which offers a --cpu-mode=(0|1)
option letting us choose between the CPU interpreter and the JIT. We need the interpreter, as most of the gdb stuff doesn't work with the JIT.
DeSmuME_0.9.13_x64.exe --cpu-mode=0 <path to NDS executable>
DeSmuME_0.9.13_x64.exe --jit-enable=0 <path to NDS executable>
will exit on startup because the first command argument is not recognized as an option; meanwhile --jit-enable
is recognized as such.