Closed rschuurmanbench closed 2 months ago
Thanks for posting the issue! To help us understand the issue and prioritize it, could you tell us what version of the extension is this on?
It's on v1.19.49, which is the latest available for me now.
@rschuurmanbench Can you install the 1.18.44 version and let me know if it works there? Our expectation is that it still won't work there. We're trying to understand if this is a regression
It's still there in 1.18.44. In both versions it's stuck here: What I think is happening: Conan/Python calls CMake with --debugger -> This makes CMake blocking while waiting for a debugger to attach. Because the PreLaunchTask probably has to be exited before the debugger even tries to connect, it blocks.
@gcampbell-msft Users have verified that this issue is still reproduced on CMake Tools:v1.18.44, can you give some advice?
@v-frankwang Yes, this is a feature request.
@rschuurmanbench I actually believe this would be a possible feature request for VS Code. We don't control how the preLaunchTask
runs, our task only starts to execute once this is finished. Therefore, I don't believe there is anything for us to do here.
Brief Issue Summary
I am using Conan and CMake, and Conan will start CMake in the
def build()
, as shown here:As I understand, this means that if I want to use the CMake debugger for this, I need to set vscode debug type to
external
and provide--debugger --debugger-pipe \\.\pipe\MyCmakeDebugger
as arguments to CMake. The conanfile looks like this:Now I have this launch configuration:
Now if I run this, the preLaunchTask will block, waiting for a debugger to connect.
It would be much better if VSCode just waits for the preLaunchTask to open the pipeName, and then connect to that. If I seperate the 2 calls (run the task manually, then start the debugger), then it works perfectly fine.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response