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
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
jazzIIIlove
Flag of Sweden image

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
Avatar of mrwad99
mrwad99
Flag of United Kingdom of Great Britain and Northern Ireland image

How exactly does it fail?  What error message do you get?  Your screenshot shows the setting dialog, which isn't exactly helpful here :)
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

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.
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

I am using JS with Java in the same project.
Avatar of mrwad99
mrwad99
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

It didn't help..
Avatar of Rob
Rob
Flag of Australia image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Sharon Seth
Sharon Seth
Flag of India image

Is Firebug not an option for you ? It's js debugging is impressive.
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

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.
Avatar of Rob
Rob
Flag of Australia image

Have you looked at the debugging tools in both IE and Chrome?  Press F12 with the browser open.
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

They are not enough for me..
Avatar of Rob
Rob
Flag of Australia image

Why? What are you wanting the debugger to do?
Avatar of jazzIIIlove
jazzIIIlove
Flag of Sweden image

ASKER

Hi;

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

Regards.
Avatar of Rob
Rob
Flag of Australia image

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".
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo