systemjs-debugger

WebJar for systemjs-debugger

License

License

MIT
Categories

Categories

JavaScript Languages
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

systemjs-debugger
Last Version

Last Version

0.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

systemjs-debugger
WebJar for systemjs-debugger
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/peteruithoven/systemjs-debugger

Download systemjs-debugger

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/systemjs-debugger/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>systemjs-debugger</artifactId>
    <version>0.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/systemjs-debugger/
implementation 'org.webjars.npm:systemjs-debugger:0.0.6'
// https://jarcasting.com/artifacts/org.webjars.npm/systemjs-debugger/
implementation ("org.webjars.npm:systemjs-debugger:0.0.6")
'org.webjars.npm:systemjs-debugger:jar:0.0.6'
<dependency org="org.webjars.npm" name="systemjs-debugger" rev="0.0.6">
  <artifact name="systemjs-debugger" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='systemjs-debugger', version='0.0.6')
)
libraryDependencies += "org.webjars.npm" % "systemjs-debugger" % "0.0.6"
[org.webjars.npm/systemjs-debugger "0.0.6"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

SystemJS Debugger

Enables debugging SystemJS (JSPM) configuration.

After import it will keep a record of all imports and their information. You can log them in a readable way to a console using logImports(). You can also visualize them in your own way by retrieving the imports data using getImports().

Usage

// import debugger first
System.import('systemjs-debugger').then(function(systemJSDebugger) {
  // log imports when import succeeds or fails
  systemJSDebugger.loggedImport('app.js')
});

Manually calling logImports()

// import debugger first
System.import('systemjs-debugger').then(function(systemJSDebugger) {
  System.import('app.js')
    .then(function() {
      // log imports after import
      systemJSDebugger.logImports();
      window.onerror = null;
    })
    .catch(function(err) {
      console.error(err);
      // log imports on errors
      systemJSDebugger.logImports();
    });
    // log imports on errors
    window.onerror = systemJSDebugger.logImports;
});

Example output

Example output

Versions

Version
0.0.6