Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Finding Python errors with backtrace and pdb #7

Open
david-morris opened this issue Aug 15, 2018 · 3 comments
Open

Finding Python errors with backtrace and pdb #7

david-morris opened this issue Aug 15, 2018 · 3 comments
Assignees
Labels
event Topic idea/suggestion for an event. Needs assignee & votes to be scheduled as _post/*.md Python

Comments

@david-morris
Copy link
Collaborator

david-morris commented Aug 15, 2018

  • What should/will the learning objective(s) be?
    • Install and configure backtrace
    • Find one's own code in a backtrace callback to debug it
    • Set a trace an access variables in a local context with pdb.set_trace()
  • What do participants need to know / install / bring:
What next? Upvote this topic. It will be scheduled when a) 3 or more people upvoted and b) it has an assignee. If you want to teach this topic, please say so. To schedule the event, create a new file in the _posts folder, copy this template's filename and content and fill in the new event metadata.
@katrinleinweber katrinleinweber added the event Topic idea/suggestion for an event. Needs assignee & votes to be scheduled as _post/*.md label Aug 16, 2018
@rbirkelbach
Copy link

I can also show how to do similar things in R if that's not too much. :)

@david-morris
Copy link
Collaborator Author

I think we should see if we have enough material to split it into two lessons to reduce extraneous load and wasted time for people who only use one of the two languages.

I don't think I learned how to drop into a REPL in R from a function when I was using R, I'd love to hear it!

Also, now that I think of it, I'm wondering if it's possible to react to errors by dropping into a REPL/debug session, like in SBCL (Common Lisp). That's probably a bit advanced for our audience, though.

@katrinleinweber
Copy link
Contributor

Yes, please open a new issue for the same topic in R, regardless of the amount of material. Teaching things both in different languages was criticised by several workshop attendees, so it's probably a good idea to keep study group events specific to one language at a time and maybe schedule such "tandem" events for 2 adjacent weeks.

@katrinleinweber katrinleinweber changed the title Python Error Finding with python backtrace and pdb Finding Python errors with backtrace and pdb Aug 17, 2018
@david-morris david-morris self-assigned this Aug 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
event Topic idea/suggestion for an event. Needs assignee & votes to be scheduled as _post/*.md Python
Projects
None yet
Development

No branches or pull requests

3 participants