Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Stack trace does not show file/line in the console. #23

Open
Wampa842 opened this issue Jun 13, 2021 · 0 comments
Open

[BUG] Stack trace does not show file/line in the console. #23

Wampa842 opened this issue Jun 13, 2021 · 0 comments

Comments

@Wampa842
Copy link

Wampa842 commented Jun 13, 2021

Describe the bug
Exception stack traces do not show file or line number in the Exception.StackTrace property, the Exception.ToString() output, or output_log.txt.

To Reproduce

  1. Create a mod that throws, catches, and logs an exception.
  2. Build the mod using the Debug configuration.
  3. Execute debug.bat and have both the .pdb and ˛.dll.mdb files in the Mods folder. I do this in the post-build event.
  4. Start the game and have the mod throw the exception.

Expected behavior
Each item in the stack trace that is located in the mod's assembly should mark the source file and the line number.

Screenshots
image

output_log.txt

MODLOADER ERROR: System.NullReferenceException: Object reference not set to an instance of an object

  at Backpack.ItemButtonBehaviour.set_Target (UnityEngine.GameObject value) [0x00000] in :0 

  at Backpack.Backpack.PickUp (UnityEngine.GameObject o) [0x00000] in :0 

  at Backpack.Backpack.PickupButton_Press () [0x00000] in :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant