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.
LVL 12
jazzIIIloveAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrwad99Commented:
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
0
jazzIIIloveAuthor Commented:
Hi;

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

I failed as attached.

Regards.
screenshot.85.jpg
0
mrwad99Commented:
How exactly does it fail?  What error message do you get?  Your screenshot shows the setting dialog, which isn't exactly helpful here :)
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

jazzIIIloveAuthor Commented:
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.
0
jazzIIIloveAuthor Commented:
I am using JS with Java in the same project.
0
mrwad99Commented:
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.
0
jazzIIIloveAuthor Commented:
It didn't help..
0
RobOwner (Aidellio)Commented:
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
0
RobOwner (Aidellio)Commented:
See here for more information about debugging javascript in Chrome:
https://developers.google.com/chrome-developer-tools/docs/javascript-debugging
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sharon SethCommented:
Is Firebug not an option for you ? It's js debugging is impressive.
0
jazzIIIloveAuthor Commented:
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.
0
RobOwner (Aidellio)Commented:
Have you looked at the debugging tools in both IE and Chrome?  Press F12 with the browser open.
0
jazzIIIloveAuthor Commented:
They are not enough for me..
0
RobOwner (Aidellio)Commented:
Why? What are you wanting the debugger to do?
0
jazzIIIloveAuthor Commented:
Hi;

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

Regards.
0
RobOwner (Aidellio)Commented:
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".
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.