Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Eclipse JSDT Debug: Setting breakpoints in Javascript editor does not work as expected

Hello Dhanya,

First, Juno is a very old version. Many improvements have happened in JSDT since then, a lot of work was involved, and I don't think you'll find anyone this days likely to provide (free) support for a 6 years old version. The safest move forward for you is to first try the latest version and check whether the issue you see is already fixed, and come ask again if it still happens with a more recent version.
Also, given the deep level of integration you implemented, it seems to me that in such case, you should be ready to debug JSDT directly, report bugs and submit patches. I'm not aware of any current contributor who is deeply involved in the support for Rhino debug integration, so it's something you'll have hard time to find help for. But fortunately, the code is open-source and is relatively accessible for plugin developers to debug it and to contribute back fixes.

HTH

On Wed, Feb 21, 2018 at 4:26 AM, Dhanya Pradeep <dhanyae@xxxxxxxxx> wrote:
Hi,

We have an application which provides scripting support using the mozilla Rhino _javascript_ engine. We also have a framework that provides APIs to the script that helps the script to interact with the internals of our tool. Recently we provided a feature to enable debugging of the _javascript_s developed for the tool using eclipse and the debug support provided by the JSDT Debug framework.
We see two problems and would like to know whether someone can help us

1. Sometimes the breakpoints do not get set at the place that we intend to. For eg: If I want to set a breakpoint at line no 10, it gets set at 11, sometimes 15 etc.
2. Even if I set a breakpoint, they are not hit at the right places when we run the script.
3. It is also noted that with small scripts we do not face much problem, as the length of the script increases we see more and more problems.

We are using Eclipse 4.2 Juno version.
It is also to be noted that the since the script is embedded into our java application users are free to use both java and _javascript_ syntaxes.
I'm not sure whether the commands are causing any problem.

Any help would be highly appreciated.

Thanks,
Dhanya

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev



--
Mickael Istria
Eclipse IDE developer, at Red Hat Developers community
Elected Committer Representative at the Eclipse Foundation board of directors

Back to the top