Wizard
❔ Output error when user missing .NET runtime
because I need to support early windows operating systems. My program is written for a very old game that runs on windows xp. Realistically I can't target XP but targetting net462 at least lets me target vista
18 replies
❔ Output error when user missing .NET runtime
I just want some sort of diagnostic to inform the user the problem rather than crashing with no info. Currently the #1 question being asked on my issues board lol. I figure there might be some sort of early event that doesn't need a NET runtime?
18 replies
❔ Get locals and their values from an Exception object.
basically I created an app and added a boatload of LogException calls. Users keep sending me their logs but the stacktrace I'm logging is beyond useless as it doesn't have any locals. Yes I know it fails at this line in method x, but it doesn't help me unless I know what the value is.
Been trying to update my code to just verbosely log all locals I need, but I'm 3 hours into that project and I'm not even a quarter of the way done. So I'm out of ideas if this get-locals-from-stacktrace idea isn't possible.
35 replies
❔ Get locals and their values from an Exception object.
https://stackoverflow.com/questions/362124/how-to-trace-all-local-variables-when-an-exception-occurs
35 replies
❔ Get locals and their values from an Exception object.
You mention the vs debugger pauses execution before the stack unwinds. I'm still a bit confused.
Stack information is already saved to the StackTrace object in my LogException. Are you implying execution is never halted while the exception instance is created? That makes no sense for a single-threaded app. Even so there should be a way to do it the same way visual studio does it if that's the only possibility.
I've seen people claim it's possible on stackoverflow but their example code is just too difficult for me to understand or their use case is too far from mine to be useable.
35 replies