A complete gdb to lldb command map.
- Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
- p - Print primitive type
| // Implement a min heap: | |
| // -> insert, extract_min | |
| // property: | |
| // - elements are in ascending order | |
| // - complete binary tree (node is smaller than it’s children) | |
| // - root is the most minimum | |
| // - insert takes O(logn) time | |
| // - insert to the bottom right |
| (function(global) { | |
| var serviceRegistrar = {}; | |
| function resolve(serviceName) { | |
| if (typeof serviceRegistrar[serviceName] === 'undefined') { | |
| throw new Error('Service "' + serviceName + '" cannot be instantiated.'); | |
| } | |
| return serviceRegistrar[serviceName]; | |
| } |
A complete gdb to lldb command map.
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]