Skip to content

Instantly share code, notes, and snippets.

@lifeart
Last active February 6, 2022 19:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lifeart/dc966071ec6c5a3f9d5adc70c2aa8102 to your computer and use it in GitHub Desktop.
Save lifeart/dc966071ec6c5a3f9d5adc70c2aa8102 to your computer and use it in GitHub Desktop.
  1. Apply VSCode settings from settings.json to your vscode project
  2. Add VScode launch.json configuration
  3. Restart VSCode
  4. Open any Ember Project, wait for Ember Icon

image

  1. Click on "Attach by Process ID"

image

  1. Select ELS PID or check it on bottom line icon: { uELS [1234] }

image

  1. Open /config/environment.js file and put debugger into any line

image

  1. Click on "Ember" icon to reload current project

image

  1. See debugger!

image

  1. Reload LS clicking on { uELS [pid] } button

image

  1. After reload you may need to click on Ember button to reinitialize project (to catch breakpoint)

image

// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"resolveSourceMapLocations": null,
"sourceMaps": true,
"type": "pwa-node",
"skipFiles": [
"**/node_modules/vscode-languageserver/**",
"**/node_modules/vscode-jsonrpc/**",
"**/node_modules/@babel/**",
"**/node_modules/memoizee/**",
"**/node_modules/dag-map/**",
"**/node_modules/@lifeart/ember-extract-inline-templates/**",
"**/node_modules/ember-template-recast/**",
"**/node_modules/picomatch/**",
"**/node_modules/semver/**",
"**/node_modules/flat/**",
"**/node_modules/fuzzaldrin/**",
"**/node_modules/json-parse-ast/**",
"**/node_modules/lodash/**",
"**/node_modules/yaml/**",
"**/node_modules/vscode-uri/**",
"**/node_modules/vscode-languageserver-textdocument/**",
"**/node_modules/vscode-languageserver-protocol/**",
"**/node_modules/simple-html-tokenizer/**",
"**/node_modules/@glimmer/**",
"<node_internals>/**"
]
},
]
}
{
"els.server.debug.enabled": true,
"els.server.debug.port": 6004
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment