Local Variables and Function Arguments for Video Game Development

Share:

BugSplat now includes local variables and function arguments for our Windows Native, Unity, and Unreal C++ integrations.

By including local variables and function arguments, we can provide another level of contextual information about the cause of your game crashes.

This new feature may help reduce or eliminate the need to debug a crash report on your local development machine.

  

This change will also help our users more quickly identify the root cause of a crash, or identify any logic errors, without having to leave the crash report.

Context is good!

One of the central values of crash reporting is that it removes many levels of the traditional debug process by telling you when and where and how frequently your code is crashing.

Providing these variable values adds another level of data that helps give substantial clues for what caused your application to crash.

Identifying Defects Using Local Variables and Function Arguments

There are many ways this new information can help you to quickly determine the cause of a defect. However, a great example of why this new feature is so useful can be seen in our sample application Divide By Zero crash.

Take a look at the screen grab below from our myConsoleCrasher application

local variables and function arguments for our Windows Native C++

This is a divide by zero crash, and the only local variable with a value of zero is ‘y’. This points you to the root cause of the crash without any additional work!

You can use our public database to explore this example crash. Click on this link to view the example crash.

Next Steps

As this is a newly released feature - we're looking for feedback from our users. Tell us your stories! Did this feature improve the way you work?

We're pretty flippin’ jazzed about the opportunities this new set of data provides our C++ users.

Please send any comments or questions or compliments to support@bugsplat.com

Happy bug hunting.

Join 1,200 developers who love our mailing list.

Expertly curated emails that'll help you deliver crash-free code to your users.