-
Notifications
You must be signed in to change notification settings - Fork 26
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
"internalConsoleOptions": "openOnSessionStart" not working out of the box #529
Comments
@1Mark the
By default, the console option is set to
The
This is something that we could do, but this would be a separate feature request. see here microsoft/vscode-python#11932
Adding
As mentioned before there is no constraint on that field that translates to restrictions on /cc @luabud |
@karthiknadig Ok I don't know if I'm missing the point but I've read it twice. My issue is that the following launch.json doesn't cause the debug console in vscode to open and be focused if I've closed it manually regardless of what I debug
The only way I got it to work was to add
This seems like a bug |
@1Mark Oh I see. thanks for clarifying. |
For me "internalConsoleOptions": "openOnSessionStart" causes the console to open, but VERY briefly. Something like 40ms. Then immediately goes back to the terminal. It also affects another extension (Platformio IDE) which opens debug console using |
Hi! This issue has been around a bit and we have made changes to this area in the meantime. Wanted to check in on if this is this still a problem you are facing. Thanks! |
Hi! Are you still facing this bug? |
Issue Type: Bug
Issue was originally raised on microsoft/vscode#146102
fyi @sandy081 @isidorn
microsoft/vscode-python#6159 introduced
"internalConsoleOptions": "openOnSessionStart"
but using this via one of the pre-existing python debug configurations doesn't work out of the box since it has a constraint.Start debugging a new project or file, it will ask you to choose a debug config
If you choose this first option it gives
Then you realise you want the debug console to open automatically when you start the debugging, you come across microsoft/vscode-python#6159
then you add this to your config and
Which doesn't work since
Isn't in the default config.
Several requests
internalConsoleOptions
must be used withHere is a diff compared to the existing one
Python File Debug the currently active Python file
Python File Debug the currently active Python file
config to include. This is somewhat controversial but although it's incorrect,purpose
works both for tests and debug file and therefore there is no downside by doing this.Since I don't see how this is related to launching the Debug console.
Diagnostic data
python.languageServer
setting: PylanceUser Settings
Extension version: 2022.2.1924087327
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:55.248Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 5.10.60.1-microsoft-standard-WSL2
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: