justarandomgeek / vscode-factoriomod-debug

Factorio Mod Tool Kit
Other
97 stars 21 forks source link

QUESTION: How to setup a development environment? #43

Open kuxynator opened 3 years ago

kuxynator commented 3 years ago

How to setup a comfortable development environment?

So far I haven't used the debug mode yet, because I don't really have an idea how to use it. Current setup: I have

To test (without debug) I call a batch file which copies the zipped src folder to the mod directory and than I call the factorio.exe with parameter

With this setup I have a test environment for each mod.

BUT now I want to debug finally (as I am actually used to for C#)

Now the problems begin:

for you ideas and tips I would be very grateful

justarandomgeek commented 2 years ago

https://github.com/justarandomgeek/vscode-factoriomod-debug/blob/master/workspace.md should answer most of these questions. --mod-directory is set automatically. Check the Intellisense in launch.json for more information on other options.

B-head commented 4 months ago

How to work in any folder.

  1. Mimic the structure within ./mods in Factorio's user data directory.
  2. Add "modsPath": "${workspaceFolder}" to launch configurations.