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

It would be great if F5 would open the debug console automatically #161

Closed
Ritzlgrmft opened this issue Jul 1, 2016 · 5 comments
Closed

Comments

@Ritzlgrmft
Copy link

Ritzlgrmft commented Jul 1, 2016

Currently my build/debug workflow for my Ionic2 app is the following, when I need to debug it on the device (which I need since I am testing some hardware functionalities which cannot be simulated):

  • run ionic serve --nobrowser in the background
  • press F6 for the cordova build: this shows automatically the output window
  • press F5 for starting the debugger

Here it would be nice to see the debug window automatically - without explicitely showing it with Ctrl-Shift-Y.

No big deal, but helpful...

@MSLaguana
Copy link
Member

I believe that this behavior is controlled by vscode itself, and is also working as-designed since you are also using the build output window. There was a time when the window would automatically switch between different views, and I remember that leading to hiding build failures and debugging against older outputs without realising.

Might be worth opening an issue on https://github.com/microsoft/vscode to discuss how this might best work.

@Ritzlgrmft
Copy link
Author

I opened an issue on vscode.

@Ritzlgrmft
Copy link
Author

It is quite easy: just add

'internalConsoleOptions': 'openOnSessionStart'

to launch.json.

@MSLaguana Maybe you can add this option when you generate the launch.json?

@mbraude
Copy link

mbraude commented Jul 17, 2016

@Ritzlgrmft thanks for your feedback. I've copied this to our backlog and we'll get to it if we have time and we hear others asking for the feature as well.

@panarasi
Copy link
Contributor

@Ritzlgrmft I was talking to other users and I think that this extension should respect the setting that VSCode does. Looks like not everyone wants the debug console to open. Also, when we prototyped this, we noticed that if we explicitly set this, a user's setting is overridden, some thing we do not want.

My recommendation would be to not do this as a part of the extension, and respect what VSCode does. In you case, you can always add the setting to launch.json, as you mention. Will that be sufficient ?

Closing this issue are we do not plan to implement this. If you still believe that we should do this, please do re-open the bug and we see if other users want it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants