15

I have an Angular app (.Net Core backend). I can create configurations in the launch.json file and debug with Firefox, Chrome, Edge, etc. But I don't see any option for Safari!

QUESTION - How do I create a configuration for Safari to use instead of Chrome when launching the debugger? When I click 'add configuration' in launch.json, which option do I select for Safari? Do I need a separate extension?

4
  • 3
    I have this same question. Commented Jun 3, 2021 at 0:21
  • Does this answer your question? link Commented Feb 21, 2022 at 16:05
  • no, unfortunately not. Commented Feb 21, 2022 at 19:12
  • have you tried setting the runtimeExecutable to Safari? I dont' own a Mac so I can't test, but it might have a similar enough debugging protocol to chrome. Otherwise, it's not natively supported by VS Code Commented Feb 23, 2022 at 9:27

1 Answer 1

0

I found some links for you:

Set the BROWSER environment variable before executing the start command may help.

This environment variable is documented here: https://create-react-app.dev/docs/advanced-configuration/

By default, Create React App will open the default system browser, favoring Chrome on macOS. Specify a browser to override this behavior, or set it to none to disable it completely. If you need to customize the way the browser is launched, you can specify a node script instead. Any arguments passed to npm start will also be passed to this script, and the url where your app is served will be the last argument. Your script's file name must have the .js extension.

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.