Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASP.NET 5 and the debugger #264

Closed
JamesNK opened this issue Jan 10, 2015 · 7 comments
Closed

ASP.NET 5 and the debugger #264

JamesNK opened this issue Jan 10, 2015 · 7 comments

Comments

@JamesNK
Copy link
Member

JamesNK commented Jan 10, 2015

Talking with @davidfowl, today it sounds like if you make a code change to a ASP.NET website, and the debugger is attached, the ASP.NET website won't recycle and reflect your changes until you detach the debugger.

This is a pain when you want to debug your new changes to a website immediately. You will have to detach, (possibly save the cs file again), then ctrl+alt+p to bring up the processes list and then find and select the website process, then click attach. This 1+ minute overhead is annoying.

Ideally what I'd like to happen is on save of a cs file is the website is automatically recycled, and the debugger is reattached, so you can make changes and keep debugging without breaking your flow of having to manually attach and detach the debugger. (I know that it isn't E&C and you'll lose your current request if you've hit a breakpoint, that's fine)

One idea is VS displays a prompt when you save a ASP.NET 5 cs project file while debugging, asking whether you want to recycle the website and keep debugging. Your changes will automatically be reflected in the website and the VS debugger will still be attached. Developer productivity++

@Eilon
Copy link
Member

Eilon commented Jan 13, 2015

@mayurid @barrytang for tooling.

@barrytang
Copy link

Opened a VS bug for this.

@sayedihashimi
Copy link
Member

@Eilon if we have edit-and-continue support do we need this?

@Eilon
Copy link
Member

Eilon commented Jan 20, 2015

Hmm not sure. Personally I've never trusted Edit and Continue because it seemed too magical to me. I prefer restarting my app so I know the exact state it's in.

Do customers use Edit and Continue in ASP.NET apps? (Or has it ever worked?)

@JamesNK
Copy link
Member Author

JamesNK commented Jan 20, 2015

I have been using ASP.NET since 2003 and in my travels I have never once seen edit and continue work.

@danroth27
Copy link
Member

I opened aspnet/Tooling#14 in our new Tooling repo to track this request.

@tommck
Copy link

tommck commented Mar 10, 2015

I used edit and continue a lot, but it became a LOT less useful once LINQ came around and it couldn't handle that.

ryanbrandenburg pushed a commit that referenced this issue Nov 16, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants