Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

Debugging in VS Code using Jasmine framework (for Protractor)

$
0
0

I'm trying to debug in VS Code. I've created the launch.json file:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceRoot}/conf/conf.js",
        }
    ]
}

I'm using Jasmine and in my conf.js file (I'm using the file from the example when I installed Protractor), it starts with exports.config = { but it has 3 dots showing under it. When I click on the light bulb, it says "Convert to ES6 Module"

When I debug, it doesn't step into the code and just jumps to the end, even if I put breakdowns.

My conf.js file:

exports.config = {
  directConnect: true,

  capabilities: {
    'browserName': 'chrome'
  },

  framework: 'jasmine',

  specs: ['../specs/horses.js'],

  jasmineNodeOpts: {
    defaultTimeoutInterval: 30000
  },
};

When I run: protractor .\conf\conf.js in the Terminal, it works fine. I have a non-angular page.


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>