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

Can you make the VSC to support multi project debug? #5300

Closed
SilentTiger opened this issue Apr 15, 2016 · 11 comments
Closed

Can you make the VSC to support multi project debug? #5300

SilentTiger opened this issue Apr 15, 2016 · 11 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@SilentTiger
Copy link

Can you make the VSC to support multi project debug?
I mean, just like in VS, make user be able to open more than one project folder at the same time, and can debug them in the same time?

I think that would be a wonderful feature.
Thank you so much!

@egamma egamma added the feature-request Request for new features or functionality label Apr 15, 2016
@egamma
Copy link
Member

egamma commented Apr 15, 2016

@weinand fyi

@weinand
Copy link
Contributor

weinand commented Apr 15, 2016

@SilentTiger VS Code already supports to open more than one project folder. And every project has its own window and supports its own debug session.
What is currently not supported is opening a single project in multiple windows. A consequence of this is that you cannot have more than one debug session for a single project.
A workaround exists: add a subfolder to your project and open that folder in another VS Code window.
This helps if your project consists of a client and a server: if you move the server into a server sub folder you can debug client and server at the same time.

@SilentTiger
Copy link
Author

@weinand Thanks for your reply.
I'm afraid my description made you misunderstand.
I did not mean to open single project in multiple windows, I mean open multiple projects in single window.

For example, a project consists of a client and a server, if I can debug them in just one VSC window but not two VSC windows, such as what I did in VS, that would be great.

I opened this issue because I have a big project consists with 5 different NodeJS projects, and I need to run and debug them at the same time, so if I open them in separated windows, there will be 5 VSC windows full of my screen.

Thank you so much!

@weinand
Copy link
Contributor

weinand commented Apr 15, 2016

@SilentTiger how should multiple debug sessions in one window work?

@SilentTiger
Copy link
Author

@weinand
This is my screen on VS2015 with NTVS 1.1
I run two projects at same time, and I can set break point on both projects.

shot

@weinand
Copy link
Contributor

weinand commented Apr 15, 2016

@SilentTiger what's about the stack trace and data views?

@SilentTiger
Copy link
Author

@weinand You can see that the app1.js is paused by the break point, and the app2.js is still running. The left bottom window of VS is local variables, and the right on it is stack trace.
shot

@weinand
Copy link
Contributor

weinand commented Apr 18, 2016

@SilentTiger and if both are stopped in a breakpoint?

@SilentTiger
Copy link
Author

@weinand It can not stop more than one project by break poins at sametime.
But I still think it's a great feature to run two or more projects in one VSC window. In fact, I can first set break point in project A to pause the process and then set a break point in project B to pause the process later without restart them.
Maybe you could have a try on VS2015 about this feature.

Of course, VS2015 has its own problem, it would be very slow when the project contains too many js files, while VSC did really great in this kind of situation.

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Apr 20, 2016
@weinand weinand added this to the Backlog milestone Apr 20, 2016
@weinand
Copy link
Contributor

weinand commented Apr 20, 2016

@SilentTiger "It cannot stop more than one project by breakpoins at the same time." That's exactly one of the issues we want to avoid in VS Code. But that would require to be able to show multiple threads, stacktraces, variables, debug console etc. Doing this with multiple windows is much clearer and simpler than squeezing it into one window.

@weinand
Copy link
Contributor

weinand commented Nov 10, 2016

This feature made its first appearance in the October 2016 release. In the November release we are fine tuning the UI. See #14450.

@weinand weinand modified the milestones: November 2016, Backlog Nov 10, 2016
@weinand weinand closed this as completed Nov 10, 2016
@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 feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants