From 9e096cd999401f3ec5cb8e64cbba60be5594f891 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Sat, 30 Nov 2024 12:17:14 +0100 Subject: [PATCH] fix codeblock indent --- src/extra/advanced/debugging_ndk_libraries/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extra/advanced/debugging_ndk_libraries/index.md b/src/extra/advanced/debugging_ndk_libraries/index.md index 01bb93c..9723598 100644 --- a/src/extra/advanced/debugging_ndk_libraries/index.md +++ b/src/extra/advanced/debugging_ndk_libraries/index.md @@ -17,8 +17,8 @@ Works on linux, macOS and windows on both arm64 and intel 4. Add the following property (only the python api seem to ignore that we load debug info of `.so` files into a macOS / windows process) ```json "preRunCommands": [ - "breakpoint set --name mcpelauncher_linker_notifylldb -C \"script lldb.debugger.GetSelectedTarget().SetModuleLoadAddress(lldb.debugger.GetSelectedTarget().AddModule(lldb.process.ReadCStringFromMemory(lldb.frame.FindVariable('filename').unsigned, 255, lldb.SBError()), '', ''), lldb.frame.FindVariable('offset').unsigned)\" --auto-continue true", - ] + "breakpoint set --name mcpelauncher_linker_notifylldb -C \"script lldb.debugger.GetSelectedTarget().SetModuleLoadAddress(lldb.debugger.GetSelectedTarget().AddModule(lldb.process.ReadCStringFromMemory(lldb.frame.FindVariable('filename').unsigned, 255, lldb.SBError()), '', ''), lldb.frame.FindVariable('offset').unsigned)\" --auto-continue true", + ] ``` mcpelauncher-linker exposes this function used as an automated breakpoint and calls it before calling the constructor of the game, the address is available in the cli output as well. 5. Enjoy having step debugging in mods compiled with debug information and better stack traces of the minecraft game