Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I see, yes just printing a simple function on demand is indeed quite useful.

IIRC V8 has Debug.disassemble(f), requires both a special build and mirror debugger exposed to the page. Prints disassembly to stdout. Can be tweaked to return disassembly as string, but that requires knowledge of V8. (I actually don't know who is the client of this function or why it was added).

[side note: if you get function disassembly you can't really be completely sure that that's the code that was running 2 seconds ago, that's one of the reasons why V8 just dumps everything]



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: