Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific use-case #53

Open
quinnj opened this issue Jun 22, 2016 · 3 comments
Open

Specific use-case #53

quinnj opened this issue Jun 22, 2016 · 3 comments

Comments

@quinnj
Copy link

quinnj commented Jun 22, 2016

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.

@Keno
Copy link
Owner

Keno commented Jun 22, 2016

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.

@quinnj
Copy link
Author

quinnj commented Jun 23, 2016

I'm on OSX usually, but have access to a linux box. Any pointers on scripting the debugger?

@Keno
Copy link
Owner

Keno commented Jun 25, 2016

There should be a cleaner API but check in test/stepping.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants