Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This took some work but I feel like I created a real smooth developer experience for debugging both Vue and NET Core in VS Code.
I added a bit of code to the startup of the template to allow for a few arguments to be passed.
The vue-cli server mode can be passed.
Start mode is the same way it is usually done, with the C# Configure starting the NPM runner and attaching to it.
Attach mode is just attaching to an existing VueCli Server
A port parameter can be passed to make it easy to use different ports if needed.
Lastly, a kill parameter uses the same code in VueCliMiddleware to shut down any stray Vue Cli processes (I was having them get stuck kind of regularly).
Then, I completely reworked the launch and task files for VS Code. I really didn't like not being able to see the Vue Cli server launched in the background by the VueCliMiddleware
The .NET Core & Vue Server is what I'm most proudest of :)
It does this:
You can see everything that's happening and it all happens in sequence.
The .NET Core Web launch config is similar to the original except I changed it to launch the Chrome debug config.
On both, I set it to turn off the numerous module load messages in the debug console.
So with one launch command, I get this
