flinux
flinux copied to clipboard
Implement a debugger in flog
Using Visual Studio debugger for debugging a crashed instance is not very helpful - you cannot do many things other than introspect the call stack, current memory or registers. Currently flinux automatically dumps memory allocations on crash, it is useful for some scenarios, but often more information about mm/vfs/heap etc are required.
To help make the debugging experience easier, we want to implement a small debugger inside flinux, it should be loaded after flinux crashes or via a function call, and let user introspect the current state of the instance.
This should first be a command line based debugger which let users type in debugger commands in flog, and it communicates with flinux and shows the results in the log viewer.
Main tasks to be done:
- Implement debugger command line interface in flog
- Design a debugger interface between flinux and flog
- Implement human readable vfs/mm/... introspection functions
- Start the debugger when flinux crashes, and implement various debugger commands