hello everyone I'm Isadora and I'm an
engineer in the visual studio debugger
team Microsoft and my main focus is
really hot reload and c-sharp but I
always doing a lot of random things
around C plus plus as well and for this
demo I'm going to Showcase what other
amazing developers on my team have been
working on as well which is native step
filtering but on a project level so for
this demo what I have here is I am GUI
which is an amazing open source library
that really just help you to display
stuff as an immediate UI helper here
what I have is one of the almost
documentation really where they have all
these examples on how to use their API
and what you can do with it so for
example here I can do some custom
renderings or I can do something which
is very very useful which is just
displaying tables and making them
resizable and doing different things
around it
so let's say that I'm using this open
source library and I want to see what it
does
so as a user here what I can do is
actually close this repo get started
with this demo and just just try
different things around
so the first thing that I'm going to
show here especially for this demo is uh
that's the tables so let's say that I
open here and then I'm going to find out
whatever this function does
so my first step is ADD butter is just a
step into it and see what it does
and you can see that I have this really
not expected view that I ended up in the
Constructor for I'm back because of
course I'm creating a vector somewhere
here in this call okay so what I can do
is just come here and then step into
begin table again
and then here again I'm creating the
string so I'm the Constructor for this
ring and not really what I expected to
be so I can just try again and then
finally I'm actually where I want to be
which is the some beginning table calls
and then I can just go further here
but as you can see this experience
cannot be very welcome for people who
are just onboarding your new project or
just trying to understand something
because it can be quite overwhelming
you're hitting a lot of this different
constructures and specific
implementation details of your project
also as a shout out before I can
continue one workaround that you can do
for this particular situation is that
you can actually right click and then
step into specific and then pick
whatever function you want to actually
step here so if I do beginning table you
can see that I have the same thing as
before and then I can go here and do
crazy stuff with it
but anyway there is something even
fancier that you can do and I'm going to
show you what it is
so first step here I'm going to pause
and then I'm going to open the solution
Explorer and there is this one neat file
that I want to copy which is called that
step filter
so I'm going to copy here this project
and now that it needs it needs to be
under source with the project similar to
Netflix for example if you ever use that
and then here what I did they actually
have this in the imq repo
and you might even argue that it can
always use netstat filters before Visual
Studio but you can see here even
instructions you have to copy into a
particular documents folder path
so again for new users just onboarding
in your project this can be quite
overwhelming that one of the steps is
just copying random files are around
your machine but now with 176 digital
Studio we provide a nice way that you
can simply have this in your project
other version control and then if you
click to debug again it's going to pick
up this exact file and just for the
specifics you can see here that it's
actually specifying the name for ivac 2
and I'm string and an action for not
stepping into it and I even added
something else just for myself that I
didn't want to stop anymore on any of
the overloading plus operators or any of
overloading operators really so I just
added two notes that into those and this
works very nicely so if I have here
again my demo and then again I can just
open the same beginning table and this
time I won't do anything fancy I'm just
simply going to step into again
and then you can see I'm actually what I
want to be and I didn't need to do
anything all I had to do was just call
and this file would already be here in
this report and I can have a much more
pleasant voting experience and this is
it I hope you learned something from it
and if you want more follow-up
information there's the Twitter handle
for PS debugger that I highly recommend
Wednesday, February 4, 2026
Debugging with step filters on a project level
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment