-
Notifications
You must be signed in to change notification settings - Fork 676
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
Simplify debug #4795
Comments
Hi @isidorn! Thanks for the suggestions!
We are afraid this is going to over promise our users since if they have a project that is a class library, there is no executable to run. We could work with it and just display an error dialog if they try to run the "file", but its heavily depending on the contents of the project file (csproj).
This we can do. We will want to keep the prompt since it is helpful even without debugging since this well help users with
Solved with the comments last question.
It is not possible to debug only a single C# file. There are configurations defined in the project file (csproj) that are needed to build and run C# source file(s).
We can do this and add a link to https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md |
@WardenGnaw thanks for the quick response. I agree with the action items you proposed:
And here are some additional ones:
|
I think we keep these to show users its available to be changed. Newer users dont seem to use intellisense to figure out what options exist in the
This is dependent on the SDK version they are using. In genenral, With the latest Console.WriteLine("Hello, World!"); instead of using System;
using System.Collections.Generic;
using System.Linq;
namespace MyApp // Note: actual namespace depends on the project name.
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
} So it is not that feasible to just open a file with an extension |
@WardenGnaw you said:
But when a user has a .cs file open in an editor and presses the editor's Run/Debug button, it would be possible to detect the missing .net project setup and present a QuickPick with some |
From what I can tell, not today:
I am not aware of any way to make that make that a smooth experience today. Today, I would highly recommend instead starting with an empty folder and using This is really not a debugger question, so I don't think we have the right folks involved in this conversation. @richlander is there someone on the .NET PM team that is interested in looking at new user aquisition in VS Code who would be better at trying to understand if this is a compelling scenario for C#? |
The omnisharp-vscode extension can contribute a This is what you see with VS Code with no folder open. This way we can get users who have the C# extension installed to open VS Code in a folder and execute
|
Hi VS Code PM here 👋
I just followed this tutorial to setup a simple C# app and to debug it. Here's my feedback on what I think we could improve:
launch.json
. This helps the flow, but is out of the context, since user did not even trigger debugging. Instead of this I suggest that your extension simply provides a dynamicresolveDebugConfiguartion
that will provide a launch configuration on the fly. Example. That way you can generate the config when it is needed, and in memory. Alternatively: if you really want to write intolaunch.json
you should do it when the user starts debugging I think.I would love if we could improve this experience, since we see in user studies that users want a confirmation that VS Code can do C#, and providing an easy way to run and debug simple C# files would be great for this.
Let me know if I can help somehow. I am also open to a quick 30 min meeting where we can discuss about the new cool VS Code debug features that C# could potentially adopt and you could let us know what are your biggest ask for the VS Code debugger.
fyi @gregg-miskelly @weinand
The text was updated successfully, but these errors were encountered: