karma-runner / karma-intellij

Reporter for IntelliJ / WebStorm.
Other
34 stars 10 forks source link

Unable to debug #25

Closed dugaldmorrow closed 9 years ago

dugaldmorrow commented 10 years ago

I'm in a team that use the Intellij karma plugin to run unit tests. We use a shared karma.conf.js which others in my team are able to use to run and debug unit tests. However, I am unable to debug and run unit tests. When I attempt to debug unit tests, I see two tabs ("Test Run" and "Karma Server"), but I am missing two tabs that my colleagues see ("Debugger" and "Scripts").

It looks my setup is misconfigured- has anyone got any clues?

image

segrey commented 10 years ago

"Debugger" and "Scripts" tabs will available when there will be at least one captured browser. See "To capture a browser open http://localhost:9999/"

dugaldmorrow commented 10 years ago

Thanks for your response. When I click on the http://localhost:9999/ link, I see a new Google Chrome window showing "Karma v0.12.16 - connected" and "Chrome 35.0.1916 (Windows 7) is idle". It also contains a DEBUG button which opens "http://localhost:9999/debug.html", but the page remains blank.

The "Debugger" and "Scripts" tabs still don't appear in Intellij. Here is the output in the "Karma Server" tab. The last line appears after clicking the http://localhost:9999/ link.

WARN [reporter]: Can not load "junit", it is not registered! Perhaps you are missing some plugin? WARN [reporter]: Can not load "html", it is not registered! Perhaps you are missing some plugin? INFO [karma]: Karma v0.12.16 server started at http://localhost:9999/ WARN [launcher]: Can not load "Chrome", it is not registered! Perhaps you are missing some plugin? INFO [Chrome 35.0.1916 (Windows 7)]: Connected on socket J2uDSN5LbrWgIJ8hSp_Y with id manual-6832

segrey commented 10 years ago

Thanks for the info. Looks like you're affected by http://youtrack.jetbrains.com/issue/WEB-8925. What is your Karma plugin version? To find out it open Settings | Plugins and select there Karma plugin. What is you IDE version?

segrey commented 10 years ago

I've updated Karma plugin in the plugin repository (now it's 135.1027). Try to update.

segrey commented 9 years ago

https://youtrack.jetbrains.com/issue/WEB-8925 is fixed. Closing this.