
Using any of the log functions will print to the Console view in the editor and to the game log. Use the functions in the dmLog namespace to watch variables or indicate the flow of execution. The simplest way to debug your native code is to use print debugging. VSCode - Windows, macOS (lldb), Linux (lldb/gdb) + platforms supporting gdbserver.Visual studio - Windows + platforms supporting gdbserver (E.g.There are several debuggers for each platform. It let’s you step through the code, set breakpoints and it will stop the execution if you get a crash. The most common way is to run the code via a debugger.


Use a debugger to step through the code.If you run into problems with crashes or native code that doesn’t behave as expected there are a number of different ways forward: It is however impossible to guarantee that it will never crash, especially if your game uses native extensions. Defold is well tested and should very rarely crash under normal circumstances.
