robmoss / git-is-my-lab-book

Support EMCRs to develop their computing skills
Creative Commons Attribution Share Alike 4.0 International
12 stars 9 forks source link

Update using-a-debugger.md #76

Closed nefeltellioglu closed 1 month ago

nefeltellioglu commented 2 months ago

Python example of using try - except in debugging. I can write tryCatch() version in R if you think that would be useful. Also, I wanted to add a scheenshot of "the debugging point on line 38" as I don't think that line numbers are visible in the interface but I couldn't add a photo. I attach the screenshot if you think that would be useful to add Screenshot 2024-09-12 at 4 39 02 PM .

robmoss commented 1 month ago

Thanks very much for this suggestions @nefeltellioglu!

I've created shorter examples for Python and R here, with the aim of conveying the core idea with relatively little code. What do you think?

nefeltellioglu commented 1 month ago

Hi @robmoss, shorter examples are quite easy to follow and they definitely convey the idea of using try() conditional on an error. I like the examples!

robmoss commented 1 month ago

Thanks very much @Nefel, I've merged the other PR (#75) and it includes a detailed example of how I used this method :)