NOVA-Monorepo icon indicating copy to clipboard operation
NOVA-Monorepo copied to clipboard

Allow hooking into crashreports

Open AEnterprise opened this issue 9 years ago • 5 comments

With forge you can hook intro crash reports from your TE and add additional data to the crashreport, for complex stuff this can be very helpfull to trace the cause of the issue or to replicate it

AEnterprise avatar Aug 29 '15 19:08 AEnterprise

Sounds too game specific for me. You have the exception, put your information there.

Victorious3 avatar Aug 30 '15 01:08 Victorious3

not always, take for example a multiblock, and it throws a NPE but that's caused by some situation that could only heapen if the multiblock was build in a specific direction, if i knew how to do this (https://github.com/AEnterprise/Kinetic-Revolution/blob/master/src/main/java/kineticrevolution/multiblocks/tileEntities/TileMultiBlockBase.java#L39-L47) then it would have made tracing it down so much easier

my point is that sometimes you might want to be able to put status info in a crash report to help tracing things down as it's often hard to get the specific information from the user

AEnterprise avatar Aug 30 '15 09:08 AEnterprise

Maybe some kind of debuginfo hook that the mod provides that returns a String[] of stuff to add to the crashreport and maybe F3 menu?

RX14 avatar Aug 30 '15 09:08 RX14

for the crashreport it should only be added if the block in question is the one causing the crash

AEnterprise avatar Aug 30 '15 09:08 AEnterprise

Yeah, maybe not show it on the F3 screen, but I believe that this would be possible.

RX14 avatar Aug 30 '15 09:08 RX14