First time here? Check out the FAQ!

AnthonyFloyd's profile - activity

2025-01-21 13:07:42 -0500 marked best answer Uninterrupted breakpoint hit counter

Today I was debugging a package that was parsing through a list (~150 items) that conditionally did something. It was acting up and I was trying to determine how many times a particular function was being called. It's trivial to put a breakpoint at the right place, and I see the "hits" column in the breakpoint panel. That's all well and good, but I need to mash the F5 button many dozens of times on each debug iteration and that's tedious. The "Ignores" feature of breakpoints unfortunately doesn't increment the hit counter. I could introduce a counter into the code, for sure, but it seems like Wing has everything I need with the exception of allowing me to not stop at a breakpoint but just count the number of times it was encountered.

Could this be a future feature? The introduction of a "hitcounter" type of breakpoint or watch?

Thanks, Anthony.

2025-01-21 13:07:42 -0500 received badge Scholar ( source )
2025-01-17 16:14:56 -0500 asked a question Uninterrupted breakpoint hit counter

Uninterrupted breakpoint hit counter Today I was debugging a package that was parsing through a list (~150 items) that c

2024-11-05 09:52:25 -0500 commented answer Visually distinguish/protect files in site-packages?

You guys are awesome! Thanks for the quick implementation!

2024-11-05 05:31:49 -0500 marked best answer Visually distinguish/protect files in site-packages?

Is there a way to visually distinguish or protect files that are in site-packages as opposed to the project directory?

Sometimes I will be editing a module and a bug is exposed in a different module. However, that other module hasn't been added to the environment in editable mode and instead is in site-packages. Sometimes I don't notice this, fix the bug, and sometime later get confused when the fix has disappeared because I didn't fix it in the development location.

Ideally, I'd like to optionally set the background of the editor for source files in site-packages/* to a different colour than files in my project's directory.

Thinking about it further, perhaps it'd also be useful to be able to (optionally) set files in site-packages/* to read-only as well/alternatively. Or at least a warning pop-up letting you know when you save a file that the file is in site-packages.

2024-10-29 11:10:30 -0500 received badge Famous Question (source)
2024-10-28 09:00:51 -0500 received badge Notable Question (source)
2024-10-28 05:54:02 -0500 received badge Popular Question (source)
2024-10-25 09:18:05 -0500 received badge Supporter ( source )
2024-10-23 07:47:51 -0500 received badge Student (source)
2024-10-23 07:39:34 -0500 asked a question Visually distinguish/protect files in site-packages?

Visually distinguish/protect files in site-packages? Is there a way to visually distinguish or protect files that are in