Skip to content
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

Test: postDebugTask #45305

Closed
2 tasks done
isidorn opened this issue Mar 8, 2018 · 0 comments
Closed
2 tasks done

Test: postDebugTask #45305

isidorn opened this issue Mar 8, 2018 · 0 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Milestone

Comments

@isidorn
Copy link
Contributor

isidorn commented Mar 8, 2018

Refs: #11522

Complexity: 3

Launch configurations now support a postDebugTask (in addition to the preLaunchTask). A postDebugTask is executed at the end of a debug session and when the user has restarted a debug session with the "Restart" button.

But postDebugTask is not executed for a debug session that restarts automatically. An example is a nodemon session that restarts whenever the source is modified.

For verification on macOS it is convenient to define audible tasks, e.g.:

{
            "label": "start",
            "type": "shell",
            "command": "say start",
            "identifier": "start"
},
{
            "label": "done",
            "type": "shell",
            "command": "say done",
            "identifier": "done"
},

Now you can use these tasks for your testing:

  • verify that postDebugTask is called at the end of a simple debug session
  • verify that postDebugTask is called when debugging an extension
  • verify that postDebugTask is called when using nodemon (use the nodemon snippet to quickly create a nodemon launch config)
  • in launch.json verify that postDebugTask is suggested via intelisense and that there is a hover
@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item labels Mar 8, 2018
@isidorn isidorn added this to the March 2018 milestone Mar 8, 2018
@jrieken jrieken removed their assignment Mar 27, 2018
@sandy081 sandy081 removed their assignment Mar 27, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Projects
None yet
Development

No branches or pull requests

3 participants