swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
734 stars 50 forks source link

XCTest debug session starts after stopping swift-testing session #1002

Open award999 opened 1 month ago

award999 commented 1 month ago

Describe the bug When I stop a swift-testing debug session, the XCTest one still proceeds

To Reproduce Steps to reproduce the behavior:

  1. Have a mix of swift-testing and XCTests
  2. Debug all your tests in the test explorer
  3. Hit a bp when running swift-testing
  4. Press the stop button
  5. Notice swift-testing stops, but XCTest session still proceeds

Expected behavior Maybe through the vscode.debug or debug adapter tracker APIs we can check if it was stopped. Also is notion of parent debug sessions.

Environment

Additional context Minor annoyance, feel free to just close if implementation is messy.

award999 commented 1 month ago

@plemarquand this was just a minor annoyance since startup of LLDB can be slow and I find some times it takes a while to respond to a stop or continue press. Not concerned about this if there is no elegant solution