Debug Mod with VS 2013

Started by soulkata, February 13, 2015, 09:17:13 PM

Previous topic - Next topic

soulkata

Hi,

Its my first 'Dll mod', so I am asking dumb things! :)

I am using VS2013, I have created a custom 'ThinkNode', thowing a 'Hello World' exception.
I put a Breakpoint on the exception Line, then changed the output folder to the mod 'Assemblies' directory and I set the external program to be the Rimworld...

The game starts, find my class, bud dont stop at Breakpoint... :(

I missed somenthing? Or cannot debug mods?

mipen

You unfortunately cannot use that part of vs to debug rimworld :( however, the in game console output is very useful for debugging. If an exception is thrown it'll tell you where, and you can use Log.
Error() to print to the console. This is very useful as you can print what the code is doing at each step and let's you easily see where problems are


soulkata