Karma Debugging - No debuggable browser found
Hi,
I have just installed IDEA 13 on a windows 7 machine. I have managed to get Karma test debugging to work about 5 times. Now it pretty much always fails with a error message in the event log: "17:11:30 Error running all: No debuggable browser found"
This is not true. I have the latest Chrome(Version 32.0.1700.41 m Aura) installed and I use it regularly to debug the applicaiton I am developing.
Other things I have observed:
- Even when I kill all the running karma tests I often find node.exe and phantomjs.exe running in my task manager
- I have completely re-installed nodejs and karma on the odd chance that something was corrupted
Anyone else encounter this?
cheers,
Florian
请先登录再写评论。
One other thing: This happens both with the Karma test runnner and with the NodeJS runnner.
Hi,
Please try to debug JavaScript in HTML using "JavaScript Debug" Run Configuration.
If debugging is successful, then Karma tests should also be debugged.
To kill node.exe process you need to kill Karma server (there should be a tab named "Karma server").
hi,
The regular javascript debugging works fine and correctly hooks into the Chrome debugger.
I have tried this. I have even tried closing IntelliJ IDEA and Chrome. In some cases I still see the process there.
cheers,
Florian
Thanks for the info. Well, I'm puzzled.
Could you please attach here a file with content of 'Karma Server' tab?
If possible, please attach idea.log (on the main menu Help | Show Log in Explorer).
Thanks!
WIll try to reproduce the issue on Windows.
Here are the files you requested.
Note: I was able to get the debugging to work once as a NodeJS application, and then it started failing again.
Attachment(s):
idea.log.zip
karma.out.zip
HI,
I have just made an interesting find.
If I:
So it seems the problem is in how the IDEA automates the whole thing.
cheers,
Florian
PS: at least I have a work around now, clumsy, but working
According to idea.log, PhantomJS was captured as a slave browser in your karma tests.
Karma tests debugging is working only in Chrome and Firefox.
Just capture one of this browsers and try again.
That was it. Cool.
:)
Merry Christmas
Florian
Good to hear that!
Merry Christmas!