-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Restart test debugger with "purpose"==["debug-test"] doesn't work with test-config in launch.json #19030
Comments
Changing this to a feature request because we never supported re-start with debugging tests. We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
Thanks @karthiknadig, just a note that this behaviour is possible with the Python Test Explorer extension (LittleFoxTeam.vscode-python-test-adapter), is there something from their solution that could be borrowed? |
Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future. We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most. |
Same thing to me, but you can change the key-value to
Works for me :) |
Was this prioritized? Its kind of a big deal. It's very jarring to get a cryptic error message on something so common, and stepping into library code isn't an usual use case - the library code is often also you or your organization's code. I really hate this kludge method to enable stepping into library code. For many devs, it gives a poor first impression when they see a run configuration that's to be ignored. It should ideally just be a check box. Using |
@JamesHutchison we're busy rewriting all of our testing code, so we need to wait until that is done to see if it implicitly handles this or requires a revisit. This issue also doesn't make the first page of the most upvoted issues, and there are newer issues (that also happen to be debugger-related) with more upvotes, so whether this is a "big deal" compared to other issues which might be more "common" is not the exact signal we are receiving from the user base (not to say this isn't worth fixing, just we have to balance this with everything else people want). Obviously if someone has a proposal on how to solve this, and especially a PR, we will happily review it. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
FYI this comes off as accusatory as if I am making up the feedback we received about this, which I don't think you meant for it to. I am now considering all |
Thanks for the feedback. You’re right, I didn’t. The quotes were simply because I cited your wording.
Reconsider the default or make it configurable, yes. Done: #21748 |
Issue Type: Bug
This issue was referenced in #17636 by @rchiodo and I'm experiencing the same behaviour. Sorry I didn't respond there before the thread shut, I was on holidays and missed the fix.
Behaviour
Expected
When debugging a unittests launched from the testing panel with a launch configuration specified in launch.json, i.e. "purpose"==["debug-test"], relaunching the debugger (i.e. using the shift-cmd-F5 or the green recycle button from the debugger controls) should restart the debugger with the same configuration and rerun the selected tests.
Actual
An error message is raised with 'Invalid message: either "program", "module", or "code" must be specified'. As with @rchiodo, I'm not sure if there is an issue with my launch configuration or not.
Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultUser Settings
Extension version: 2022.4.1
VS Code version: Code 1.66.2 (Universal) (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:49:20.994Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: