Skip to content

Instantly share code, notes, and snippets.

@ramingar
Created December 12, 2018 11:00
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ramingar/9fb4c7b4d8174f9e9eefc175864e53e0 to your computer and use it in GitHub Desktop.
Save ramingar/9fb4c7b4d8174f9e9eefc175864e53e0 to your computer and use it in GitHub Desktop.
Webstorm Vue Debugging #vue #debug #webstorm

Extraído de: https://blog.jetbrains.com/webstorm/2018/01/working-with-vue-js-in-webstorm/#comment-308241


Here are the exact instructions for using the WebStorm debugger while using the Webstorm Vue development plug-in:

If you don’t already have a run configuration: Edit Configuration

  • Add New Configuration->NPM
  • Name: start
  • package.json: [take default which should be the path to this file in your project]
  • Command: [take default, which is ‘run’]
  • Script: start

Edit Configuration

To actually debug:

  • Run->Run->(choose the “start” configuration
  • Then Run->Debug->choose the “debug” configuration

(The secret sauce is that both of these configurations need to be running at the same time.)


Cuando en la configuración de Javascript Debug te pide con qué navegador abrir la aplicación, hay que acordarse de poner chromium-browser y dándole a editar añadir los siguientes argumentos: --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://localhost:8080

(esto hará que chromium ignore que los certificados están autofirmados y registrará correctamente el service-worker)

@orihomie
Copy link

You could actually choose a script to run before debug to launch app
image

@dipenparmar12
Copy link

Thank you.

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