I'd try handwriting a function that takes in a pointer to a structure, and prints its contents out to console. Then you can invoke that function in the web console just by calling its name with the pointer. That's not quite as convenient as the object property view in the debugger, but might do the job?
2014-03-05 0:53 GMT+02:00 Mark Hahn <[email protected]>: > I've converted some legacy code to javascript using emscripten. I'm > having a problem with a pointer getting clobbered in the javascript that > doesn't happen in the original C code. I'm not that familiar with the code > and I get lost trying to view the simulated memory. > > I can put in breakpoints and inspect variables using chrome inspector, but > I need to view complex C data structures. Does anyone know of any tools > that let you look at the emscripten simulated memory as C structs with > labels? > > I have already created a tool that displays memory in hex in the same way > that hex editors show binary files. It takes decimal addresses to make it > easy to use from chrome where all the pointers show as decimal. It also > shows the data as text of course. > > If nothing exists already then I'm going to write a tool that takes struct > definitions from C header files and uses the definitions to display memory > in javascript. Would anyone else be interested in this? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
