tunnelvisionlabs / JustMyCodeToggle

Adds the Just My Code command button to Visual Studio
https://marketplace.visualstudio.com/items?itemName=SamHarwell.JustMyCodeToggle
MIT License
12 stars 7 forks source link

Start Debugging Just My Code #14

Open jcansdale opened 6 years ago

jcansdale commented 6 years ago

I think this extension would be even better if it added a Debug menu option to Start Debugging Just My Code. All it would do would be enable Just My Code, call the Start.Debug command and restore Just My Code back to its original state.

This way debugging Just My Code would be an explicit choice when starting a debug session. I find the problem with the toggle is that I forget to use it.

I think this might also sidestep the #13 issue.

What do you think @jnm2?

jnm2 commented 6 years ago

That's a cool idea.

I often want it off until I hit a certain breakpoint, but if I'm starting debugging with it on, there's a good chance that I'll want it to stay on at the beginning of the next debugging session I start after this one. I'll have to pay attention.

LorneCash commented 6 months ago

I would go just the opposite. I almost always only want to debug just my code but when a NuGet package is misbehaving then I want to step into it. I would love to be able to use this feature if it were to keep "just my code" on unless I picked a special option from a menu that would temporarily disable just by code. The only problem is what should that menu item be named in that case? Start Debugging All Code vs Start Debugging My Code? I think you'd agree that Start Debugging without Just My Code is much too verbose for a menu item.