RimWorld

RimWorld

123 ratings
Better Stacktraces
2
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
Updated
39.521 KB
3 Aug @ 3:41pm
8 Aug @ 6:49pm
4 Change Notes ( view )

Subscribe to download
Better Stacktraces

Description
Better Stacktraces
After looking at too many stacktraces to count, I decided to make this to make developers' lives just a bit easier. It's also useful for users who run into errors. They can report more useful information to developers. Also, you'll know exactly which mod the error is from. No more guessing based of namespaces and method names only.

New!
Introducing XML error detection. When there's XML in an error, this mod will tell you the potential sources for that error. It also can pick up errors that don't have XML in them specifically, but that related to XML in some way, such as cross reference errors.

What's a Stacktrace?
A stacktrace is the long string of information that you see when you look at a message, warning, or error in the log. Developers use this information to debug the source of errors in their mods. That information comes from Unity, but useful information is stripped out when it finally gets to your log.

What Does it Do?
This overrides the default RimWorld stacktrace with my own.

Features include:
  • Mod name or source
  • Assembly name
  • Method parameter types and names
  • File names*
  • Line numbers*
  • XML errors

*File names and line numbers are only available if debugging information is found. e.g. The failing mod in question has .pdb debugging symbols next to the assembly in the mod's folder. Since this data is not available to any of RimWorld's or System assemblies, it will never pick up on that information.

Compatibility
  • Visual Exceptions

To Do
  • Add support for more error types

Note: Due to the nature of mod loading, this can't modify stacktraces that came before this mod loaded.
31 Comments
AwesomeShite 11 Aug @ 5:13am 
w
PandorasActor 10 Aug @ 5:00pm 
GOD MOD
The Menacing Urethra 10 Aug @ 11:18am 
GIVE ME YOUR SEED

10/10
Andy(bubbles) 10 Aug @ 8:58am 
HOLY SHIT
VitaKaninen 10 Aug @ 8:45am 
This mod is AMAZING! Such a timesaver!

Thanks so much for making it!
stephenkohnle53 10 Aug @ 5:06am 
If this is as helpful as it looks like it will be, then I fucking love you.
Meme Goddess 10 Aug @ 2:00am 
Oooo, what, yes! :O I didn't know I needed this
cramer 10 Aug @ 1:04am 
what is this? a godsend?
FlyOnTheWall 9 Aug @ 8:51am 
delicious!
Aleksey  [author] 8 Aug @ 4:40pm 
I guess it depends on how they're patching those methods. My stacktrace replaces the ExtractStackTrace() method. If other Harmony patches patch the same method mine does, they will also run, but it depends on which order they're run in. My patches have Priority.First in them, but if they do too, the order will vary. I'd think it should be fine. Harmony combines the patches for a method and runs them once, so other patches won't be overwritten or anything, they'll still run. So, in theory, they should be compatible.