Add a line number, which caused exception to happenSuggestion
Does it possible to add a line number where exception has been thown? If you see just hook's name, its almost doesn't helps to developers to understand where is that stupid NPE just happened (if was reported by user).

I have found a solution at SO, probably you can use it to make the stacktrace much more helpful: https://stackoverflow.com/questions/3328990/c-sharp-get-line-number-which-threw-exception

UPD: didn't knew, System.Diagnostics is only used in Debug mode. For Release mode probably solution is to use .pdb files: https://stackoverflow.com/questions/628565/display-lines-number-in-stack-trace-for-net-assembly-in-release-mode
Last I saw, this would drastically decrease the performance of it, which is why it is only made available in debug build.
In response to Wulf ():
Last I saw, this would drastically decrease the performance of it, which is why it is only made avai...
Do you mean .pdb files? I have found info, that they aren't affecting the performance: https://www.wintellect.com/do-pdb-files-affect-performance/

In particular, debug:pdbonly parameter shouldn't, while debug:full might reduce the performance. So its recommended to use pdbonly on release builds.
We'll take a look at it again.
Proofs of pdbonly recommendation by MS: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/debug-compiler-option
oC85jM9cU1UmAWf.jpg Wulf
Last I saw, this would drastically decrease the performance of it, which is why it is only made available in debug build.

Hiya wolf!

You mentioned this can only be done using a "debug build" (I know this post if 2 years old but this was the newest one I could find on the subject) do you mind sharing some more info on how one would enable such "debug build" so line numbers for stacktrace show up?

TactiTac0z

Hiya wolf!

You mentioned this can only be done using a "debug build" (I know this post if 2 years old but this was the newest one I could find on the subject) do you mind sharing some more info on how one would enable such "debug build" so line numbers for stacktrace show up?

I don't really thing it's possible actually.

Danm ok :(

Well do let me know if you ever figure something out though :)

TactiTac0z

Danm ok :(

Well do let me know if you ever figure something out though :)

I brought it up a while back with Calytic, but he wasn't sure that it would be possible without the game itself providing debugging symbols.