-
Notifications
You must be signed in to change notification settings - Fork 313
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
Support targeting different terminals for running/debugging #99
Comments
Seems that MS have done debug support for integrated terminal; I've asked if they might ship it in the August release but we should branch this from Feature info: microsoft/vscode#10574 We'll need to bump our code version to 1.5 for this and the debug adapter/protocol versions too. I believe it'll work in Insiders builds from Monday. |
@devoncarew I had a quick look at this to see how complicated it could be. I've pushed a minor change to a branch as a PoC. It seems to mostly work! There are some issues:
Interested in your thoughts! Feel free to make changes if you want; it's unlikely I'll get any more time on this before late Friday. |
Seems like this debug feature is being shipped disabled in 1.5, so bumping this to later. I really want to ship rename/codefixes/basic debugging in the next week or so. |
Insiders now supports targetting external terminals too. I think it might make sense to support all these options and let the user configure (and pick a good default). |
If Code gives us a pid, we might be able to use SIGQUIT to get the port instead of hard-coding: https://dart-lang.github.io/observatory/get-started.html
|
The sigquit response gets written to stdout, so tough to get ahold of if you don't already have access to stdout (and if you do, scrapping for the |
Ah, good point :( I'll have to have a play around and see what I can figure out when it's working. Been really busy last week or so so haven't made much progress. Hopefully will get more time later this week! |
Another thought: even if we could get stdout, I don't think it's reasonable to spew stuff to the users stdout. I think we'd be best randomly picking a port number and sending it (and either hoping it's not already bound or finding a way to check that won't leave it locked). |
Please add this!! 🙏 |
I'd planned to try and get my workarounds working again, but there's a potential change in Dart that would significantly simplify this (removing the need to use hard-coded ports), so it makes sense to wait to see if that goes ahead before doing anything here. |
Another option that might help here, is the new Terminal API in Code: https://code.visualstudio.com/updates/v1_39#_extension-terminal-api This would allow us to run as we do today, but target the terminal window with a fake process - and when the user types into it, we can pass that to the real stdin of the process. |
I can not still satisfied because my terminal is exist running the code within 3s and I did not even notice what was the output. can someone explain this to me? |
@Aung-Thiha112 Do you mean the output is disappearing? The Terminal should remain available after the application finishes - is that not what you see? If not, please file a new issue with details. |
hello, why my flutter project doesn't support setting
|
@kyrosle it's not possible because of the way Flutter works. That setting is to tell VS Code to execute the script so you can use things like Can you explain what it is you're trying to do? |
my project has lots of log, info, warn, debug and error, i used to writing code in vscode and running the program in jetbrain android studio, but recently i want to make all development in vscode, and then i found that the vscode debug consle is so hard to watch the log message. vscode debug console only support filter the log message... |
Thanks for the info. Unfortunately I don't know a great way to do this - it sounds like it might be worth filing a VS Code issue for being able to Find (not filter) in the Debug Console. As a workaround, you could use |
is any possible to achive it by this way? microsoft/vscode#4338 (comment) |
@kyrosle yes, that's an existing feature request for Find in the Debug Console. I thought there was already an issue but hadn't been able to find it when I wrote the comment above. Please add your 👍 to that issue. |
@devoncarew Looks like this is going into September release, so probably around 6 weeks away:
microsoft/vscode#10574
The initial terminal API is marked for August.
We need to check whether we can require that version of Code when it happens, else we'll have to make this conditional.
Marking as v1 because I'd love to have it, but it's probably wishful. If we end up wanting to ship a v1 before this is usable, we'll bump it back.
The text was updated successfully, but these errors were encountered: