Jump to content

Environment setup & Debugging


Recommended Posts

Edit: I have since joined the unofficial modding discord and found new information which may lead to more success debugging ! :)

 

 

Hi guys, I am currently working on gaining some pre-requisite knowledge before beginning a mod project of my own.

 

I have followed the 7D2D wiki tutorial on C# modding.

 

I have compiled and loaded the mod I have produced successfully into the game. 

 

I am now trying to setup visual studio so that I can debug my mod during run time. I have set the target executable and the working directory, ensured 'Enable just my code' is unchecked.

 

The game loads into the main menu without issue, however, when loading a world to try and trigger my breakpoint, the game crashes at the same point during initalisation of the world. The two final lines in the log are always:
2024-01-19T08:34:39 97.884 INF [EOS] Registering server
2024-01-19T08:34:39 98.093 INF OpenSpawnWindow

----

 

I tried attaching dnspy de@%$# at run time, however, the process does not show for dnspy. I am able to attach cheat engine and debug that way, but need higher level than assembly code for the purpose of development of my mods and getting comfortable with the mod api and so on.

 

Is what I am trying to do possible to achieve? Are there other options available to me?

 

Any help will be greatly appreciated. Thanks!

Edited by Wysh (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...