Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

intellij java+js debugger. I need the js debugging part...

Hi;

I am using intellij latest version and I can debug java easily. I also want to use js debugger along with java debugger in intellij but couldn't manage so far.

I am setting a port for tomcat in remote settings as I have to since my application doesn't use the standard tomcat port.

What to do for js debugging?

Regards.
Avatar of mrwad99
mrwad99
Flag of United Kingdom of Great Britain and Northern Ireland image

Loads of people have asked this question before; it really should be documented better.  Anyway, http://wiki.jetbrains.net/intellij/Debugging_JavaScript_with_IntelliJ_IDEA describes how to debug JS with Tomcat..  There are links at the bottom for remote JS debugging.

HTH
Avatar of jazzIIIlove

ASKER

Hi;

What about combination of both Java and JS? No information about this in the link..

I failed as attached.

Regards.
screenshot.85.jpg
How exactly does it fail?  What error message do you get?  Your screenshot shows the setting dialog, which isn't exactly helpful here :)
Hi;

Thanks for the info, there is no error. I can run the Tomcat 6.0 JavaScript debugger but my problem is that i can only see my console.logs. The debugger doesn't stop in my breakpoints, which is the problem (I am rendering a table in my js code and it doesn't stop there).

I am also using chrome extension of intellij.

Regards.
I am using JS with Java in the same project.
Umm, you have surpassed my limited knowledge now I am afraid, hopefully someone who has more experience of this will be along soon.  The last offering I can give is something I came across at http://blog.jetbrains.com/idea/2011/03/intellij-idea-debugging-javascript-in-google-chrome/, which talks about using Chrome specifically; perhaps this will help.
It didn't help..
Here is a walkthrough for firefox debugging http://www.jetbrains.com/idea/training/demos/JavaScript_Debugger/server_side_js_debugger.html

But failing that, have you just tried to use the dev tools that come with Chrome (press F12) or using Firebug that is a plugin for firefox?  They both have extensive debugging for javascript
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is Firebug not an option for you ? It's js debugging is impressive.
Ah, firebug is nice but the target audience uses IE and chrome, and I really need to have both options, Java and JS concurrently debuggable via Intellij.

Regards.
Have you looked at the debugging tools in both IE and Chrome?  Press F12 with the browser open.
They are not enough for me..
Why? What are you wanting the debugger to do?
Hi;

I am tired of console logging everywhere. That's the reason, i want it to work out properly.

Regards.
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".