clixff / ChaosModRDR

Chaos Mod for Red Dead Redemption 2 with Twitch voting
https://www.nexusmods.com/reddeadredemption2/mods/1269
GNU General Public License v3.0
13 stars 9 forks source link

How to debug #3

Open apocalyp0sys opened 2 years ago

apocalyp0sys commented 2 years ago

Hi.

How do you debug your work?

I want to make a fork for this mod, made some changes, but started to experience crashes like

SCRIPT HOOK RDR2 ERROR

CORE: An exception occurred while executing 'ChaosMod.asi' (0x00007FFA246418AC), id 39

Managed to build the mod in debug configuration, but rdr2 crashes if i attach visual studio debugger.

apocalyp0sys commented 2 years ago

I found out that mod crashes when it tries to send ws message to client when no clients are connected. Looks like this check is not enough: if (this->client).

But I am still interested in debugging methods 🤔