Skip to content

Commit 9e096cd

Browse files
fix codeblock indent
1 parent ccbe157 commit 9e096cd

File tree

1 file changed

+2
-2
lines changed
  • src/extra/advanced/debugging_ndk_libraries

1 file changed

+2
-2
lines changed

src/extra/advanced/debugging_ndk_libraries/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Works on linux, macOS and windows on both arm64 and intel
1717
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)
1818
```json
1919
"preRunCommands": [
20-
"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",
21-
]
20+
"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",
21+
]
2222
```
2323
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.
2424
5. Enjoy having step debugging in mods compiled with debug information and better stack traces of the minecraft game

0 commit comments

Comments
 (0)