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: 'restart' option for 'launch' requests #19040

Closed
3 tasks done
weinand opened this issue Jan 23, 2017 · 2 comments
Closed
3 tasks done

Test: 'restart' option for 'launch' requests #19040

weinand opened this issue Jan 23, 2017 · 2 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues testplan-item
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Jan 23, 2017

Test for #17381:
Complexity: 2

For quite some time the VS Code node debugger supported a 'restart' attribute on 'attach' configurations. See https://code.visualstudio.com/docs/editor/node-debugging#_attaching-to-nodejs for details.
With this release we now support the 'restart' attribute on 'launch' configurations as well.
If this feature is enabled, VS Code will restart a debug session whenever it detects the termination of node.js.

An example for how to verify this feature uses nodemon and the following test program app.js:

let i = 0;

setInterval(() => {
	console.log('hello:' + i++);
}, 1000);

In your launch config you can use Intellisense snippets to create a 'Nodemon setup' launch config.
After launching this you can edit app.js and VS Code should restart the debug session automatically.

Try to verify another scenario that uses 'restart' in a 'launch' configuration.

@weinand weinand added this to the January 2017 milestone Jan 23, 2017
@weinand weinand self-assigned this Jan 23, 2017
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jan 23, 2017
@weinand weinand removed their assignment Jan 23, 2017
@dbaeumer
Copy link
Member

The other scenario I verified it a node application that I killed by hand. Restarted as well.

@dbaeumer dbaeumer removed their assignment Jan 24, 2017
@alexdima alexdima removed their assignment Jan 24, 2017
@joaomoreno
Copy link
Member

This is very cool!

@joaomoreno joaomoreno removed their assignment Jan 24, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
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

4 participants