Skip to content

Debug adapter process has terminated unexpectedly #9

Open

Description

@AhmedBM

Following your instructions i get the error "Debug adapter process has terminated unexpectedly". I do use webpack as well where the entry point is config/spec-bundle.js. Am i doing something wrong?

launch.json

{
"name": "Launch",
"type": "phantomjs",
"request": "launch",
"file": "${workspaceRoot}/config/spec-bundle.js",
"webRoot": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/phantomjs.exe",
"runtimeArgs": [],
"sourceMaps": true
}

config/spec-bundle.js

Error.stackTraceLimit = Infinity;

require('core-js/es6');
require('core-js/es7/reflect');

// Typescript emit helpers polyfill
require('ts-helpers');

require('zone.js/dist/zone');
require('zone.js/dist/long-stack-trace-zone');
require('zone.js/dist/proxy'); // since zone.js 0.6.15
require('zone.js/dist/sync-test');
require('zone.js/dist/jasmine-patch'); // put here since zone.js 0.6.14
require('zone.js/dist/async-test');
require('zone.js/dist/fake-async-test');

// RxJS
require('rxjs/Rx');

var testing = require('@angular/core/testing');
var browser = require('@angular/platform-browser-dynamic/testing');

testing.TestBed.initTestEnvironment(
browser.BrowserDynamicTestingModule,
browser.platformBrowserDynamicTesting()
);

var testContext = require.context('../src', true, /.spec.ts/);

function requireAll(requireContext) {
return requireContext.keys().map(requireContext);
}

// requires and returns all modules that match
var modules = requireAll(testContext);

Activity

  1. iradul commented on Oct 18, 2016

    @iradul
    Owner

    Thank you for filing this. There are couple of things that need to be fixed before we can try to resolve this. One is related to this debugger but the other more important one is related to PhantomJS and that one will have to be fixed upstream first.

  2. AhmedBM commented on Oct 18, 2016

    @AhmedBM
    Author

    Good to know! Looking forward to when i can use this in my environment :)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions