Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

04. Debugging

matthew snoddy edited this page Jul 21, 2020 · 3 revisions

This guide will help you debug the mod.

Debug Inside C&C

Note: to follow these steps you need to have C&C Remastered collection installed via Steam.

  • Open a command prompt in the repo root
  • Run:
    scripts\run-cnc.bat
  • Alt-tab out of the game menu once it loads
  • Open Visual Studio
    • Click Debug
    • Click Attach to Process...
    • Select InstanceServerG.exe
  • DLL will be loaded once you start a mission/skirmish

Lua REPL

A test REPL (Read Evaluate Print Loop) program for the embedded Lua API can be launched by running:

scripts\run-lua-repl.bat

This is useful for debugging Lua scripts and testing out the Lua API.

Clone this wiki locally