You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So every once in a while I need to debug an error or segfault in ODBC and it's currently pretty painful because I have to manually step through so many levels of code (user-level, lower-level, API level, etc.). One use-case I thought of watching the presentation today would involve doing something like:
@enterall ODBC.query("select * from table") > output.debug
which would effectively do @enter, then prehood fr v to print the current frame variables for every frame, then si through every frame. Obviously this would generate huge walls of text as you're literally stepping in and through every call and printing the variables at each step, but sometimes that's almost what I want anyway when debugging some hard-to-find segfault. I could print it out and read it on the train in the morning :)
Anyway, I thought I'd post in case this is already trivial or if there's a quick pointer on how to write something like this if only for my own use.
The text was updated successfully, but these errors were encountered:
The debugger is quite easily scriptable, so this is quite doable. If it's a segfault though, I may have something better for you assuming you're using Linux.
So every once in a while I need to debug an error or segfault in ODBC and it's currently pretty painful because I have to manually step through so many levels of code (user-level, lower-level, API level, etc.). One use-case I thought of watching the presentation today would involve doing something like:
which would effectively do
@enter
, thenprehood fr v
to print the current frame variables for every frame, thensi
through every frame. Obviously this would generate huge walls of text as you're literally stepping in and through every call and printing the variables at each step, but sometimes that's almost what I want anyway when debugging some hard-to-find segfault. I could print it out and read it on the train in the morning :)Anyway, I thought I'd post in case this is already trivial or if there's a quick pointer on how to write something like this if only for my own use.
The text was updated successfully, but these errors were encountered: