cancel
Showing results for 
Search instead for 
Did you mean: 

problem with javascript debugger

tsgpartner_mui
Champ in-the-making
Champ in-the-making
When I try to enable the javascript debugger, my tomcat shutdowns shortly right after.  Therefore, I cannot use the debugger.


Would anyone know what is going on and why it is doing that?
12 REPLIES 12

rluberti
Champ in-the-making
Champ in-the-making
I suspect he tried with a v1.5 JDK.

I downgraded to 1.5 and now I can see the debugger running….

but it doesn't stop when I execute a javascript with alfresco….
I guess it wants me to open the JS source file….

do you know where alfresco stores the javascripts I have attached to the rules?

thanks,

        Roberto

davidc
Star Contributor
Star Contributor
Tick the 'Break on Function Entry' menu item (under Debug) in the debugger.

rluberti
Champ in-the-making
Champ in-the-making
Tick the 'Break on Function Entry' menu item (under Debug) in the debugger.

thanks, it works now

I want also comment that I'm able to run the debugger remotely following these steps:

- make sure "alfresco" user can access to X
- modify startup "/etc/init.d/alfresco" script in a way can be run by user "alfresco"
- from your client "ssh -X alfresco@your_alfresco_server"
- run: /etc/init.d/alfresco start
- run: firefox -no-remote &
- goto: "http://localhost:8080/alfresco/service/api/javascript/debugger"
- enable debugger ..and have fun