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.
Editors IDEsJavaScriptJavaWeb Languages and Standards

Avatar of undefined
Last Comment
Rob

8/22/2022 - Mon
mrwad99

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
ASKER
jazzIIIlove

Hi;

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

I failed as attached.

Regards.
screenshot.85.jpg
mrwad99

How exactly does it fail?  What error message do you get?  Your screenshot shows the setting dialog, which isn't exactly helpful here :)
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER
jazzIIIlove

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.
ASKER
jazzIIIlove

I am using JS with Java in the same project.
mrwad99

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
jazzIIIlove

It didn't help..
Rob

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
Rob

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Sharon Seth

Is Firebug not an option for you ? It's js debugging is impressive.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER
jazzIIIlove

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.
Rob

Have you looked at the debugging tools in both IE and Chrome?  Press F12 with the browser open.
ASKER
jazzIIIlove

They are not enough for me..
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Rob

Why? What are you wanting the debugger to do?
ASKER
jazzIIIlove

Hi;

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

Regards.
Rob

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".
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck