-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Empty window opens with internalConsole during debug #7528
Comments
"console" got added recently. The documentation hasn't gotten updated yet. |
Yes I thought so, since this in on insiders. I've only wrote that, to ensure that I've looked it up and creating an issue is not my first thing. :) |
Yes, the window is similar to a I've created a simple test executable project with cmaketools quick start, then placed a breakpoint on the "Hello, world!" line. Created a windows launch configuration, set the program to: Should I copy some logs or else in order to reproduce? |
Can you share the simple test project, steps to build and the |
I'm using the CMakeTools extension for the project generation and build:
Here are the generated files: #include <iostream>
int main(int, char**) {
std::cout << "Hello, world!\n";
}
CMakeLists.txt: cmake_minimum_required(VERSION 3.0.0)
project(dbgtest VERSION 0.1.0)
include(CTest)
enable_testing()
add_executable(dbgtest main.cpp)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
launch.json: {
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"console": "internalConsole"
}
]
} |
@WardenGnaw, should I provide more info to reproduce this? |
This is still kind of annoying, especially with a graphical interface, this adds an extra window. |
Still happens on stable Windows 11 Pro 21H2 22000.282. |
Requirements for the bug to be reproduced:
Directly running from VSCode's Windows Terminal has no issues. |
Bug type: Debugger
Describe the bug
After setting the launch.json as the following, an external window is opened at debug. All output appears in the debug console, but an empty console window is there.
I looked up the documentation for the launch.json, but there is no mention of "console" option, only the old "externalConsole" option is there, which is deprecated.
The text was updated successfully, but these errors were encountered: