Closed ethertricity closed 12 years ago
Could you please update to the latest nightly (I have just built one) where we have updated the debugger to the one in R15? I think that this issue is fixed there.
Yes, it works now! Thanks Vlad.
If I click out of Interpreted Modules and back in, the entries are all cleared (i.e. it doesn't remember them). Is this expected behaviour?
Wonderful!
The interpreted modules view is not really working. At the moment, the only way to make a module interpreted is by setting a breakpoint in it.
Hi, I'm trying to debug a node on my machine from Erlide.
I get the following output in the target node console upon clicking any source file in the "Interpreted Modules" dialog:
=ERROR REPORT==== 5-Sep-2012::10:34:25 === * Generic server erlide_dbg_iserver terminating * Last message in was {load,prog,no_source, <<131,104,5,100,0,18,105,110,116,101,114,112,114, 101,116,101,114,95,109,111,100,117,108,101,108, ... this goes on for ages ... 0,2,178,106,109,0,0,0,0,109,0,0,0,16,100,113, 247,142,136,147,77,157,148,103,214,111,195,71, 54,138>>} * When Server state == {state,147508,[],[], {[break], {erlide_dbg_mon,send_attached_to_java, [<12153.25.0>]}}, all, [<0.438.0>]} * Reason for termination == \ {{badmatch, {erlide_dbg_iload, {unknown_expr, {'fun',603, {function, {atom,603,progparse}, {atom,603,event}, {integer,603,3}}}}}}, [{erlide_dbg_iserver,handle_call,3,[]}, {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
=CRASH REPORT==== 5-Sep-2012::10:34:25 === crasher: initial call: erlide_dbg_iserver:init/1 pid: <0.439.0> registered_name: erlide_dbg_iserver exception exit: {{badmatch, {erlide_dbg_iload, {unknown_expr, {'fun',603, {function, {atom,603,progparse}, {atom,603,event}, {integer,603,3}}}}}}, [{erlide_dbg_iserver,handle_call,3,[]}, {gen_server,handle_msg,5, [{file,"gen_server.erl"},{line,588}]}, {proc_lib,init_p_do_apply,3, [{file,"proc_lib.erl"},{line,227}]}]} in function gen_server:terminate/6 (gen_server.erl, line 747) ancestors: [erlide_dbg_mon] messages: [] links: [] dictionary: [] trap_exit: true status: running heap_size: 610 stack_size: 24 reductions: 302 neighbours:
In the log, the following messages appear:
10:47:45,960 F: (ErlangLaunchDelegate.java:84) : doLaunch runtime erlang (erlang) 10:47:45,960 F: (ErlangLaunchDelegate.java:86) : doLaunch cookie txm (txm) 10:47:45,960 I: (GenericBackendData.java:51) : Backend data:debug mode, with attributes:: 10:47:45,960 I: (GenericBackendData.java:61) : ..arguments : 10:47:45,961 I: (GenericBackendData.java:61) : ..cookie : txm 10:47:45,961 I: (GenericBackendData.java:61) : ..debugFlags : 4 10:47:45,961 I: (GenericBackendData.java:61) : ..extra_args : 10:47:45,961 I: (GenericBackendData.java:61) : ..function : 10:47:45,961 I: (GenericBackendData.java:61) : ..interpretModules : [] 10:47:45,961 I: (GenericBackendData.java:61) : ..loadAllNodes : false 10:47:45,961 I: (GenericBackendData.java:61) : ..longName : false 10:47:45,961 I: (GenericBackendData.java:61) : ..managed : false 10:47:45,961 I: (GenericBackendData.java:61) : ..module : 10:47:45,961 I: (GenericBackendData.java:61) : ..nodeName : dev@localhost 10:47:45,961 I: (GenericBackendData.java:61) : ..projects : et_ipaas 10:47:45,962 I: (GenericBackendData.java:61) : ..runtime : erlang 10:47:45,962 I: (GenericBackendData.java:61) : ..startMe : false 10:47:45,962 I: (GenericBackendData.java:61) : *..working_dir : . 10:47:45,962 I: (GenericBackendData.java:66) : --------------- 10:47:45,962 I: (ErlangLaunchDelegate.java:99) : Node dev@localhost exists already. 10:47:45,962 F: (BackendManager.java:139) : create execution backend dev@localhost 10:47:45,962 F: (BackendFactory.java:53) : Create backend dev@localhost 10:47:45,963 F: (ErlRuntime.java:292) : using cookie 'txm...'3 (info: 'txm') 10:47:45,963 F: (Backend.java:240) : dev@localhost: waiting connection to peer... 10:47:46,065 F: (ErlRuntime.java:108) : # ping...dev@localhost Worker-5 10:47:46,066 F: (ErlRuntime.java:122) : Node dev@localhost is up 10:47:46,067 F: (ErlRuntime.java:108) : # ping...dev@localhost Worker-5 10:47:46,268 F: (Backend.java:400) : code server started 10:47:46,268 F: (Backend.java:246) : connected! 10:47:46,271 F: (CodeManager.java:217) : adding /Applications/eclipse/plugins/org.erlide.kernel.debugger_0.17.0.201208301254/ebin to code path for @319285679:: Runtime<erlang (/usr/local/lib/erlang) R15B01 []> 10:47:46,275 F: (CodeManager.java:217) : adding /Applications/eclipse/plugins/org.erlide.test_support_0.17.0.201208301254/ebin to code path for @319285679:: Runtime<erlang (/usr/local/lib/erlang) R15B01 []> 10:47:46,279 F: (CodeManager.java:217) : adding /Applications/eclipse/plugins/org.erlide.kernel.ide_0.17.0.201208301254/ebin to code path for @319285679:: Runtime<erlang (/usr/local/lib/erlang) R15B01 []> 10:47:46,282 F: (CodeManager.java:217) : adding /Applications/eclipse/plugins/org.erlide.kernel.common_0.17.0.201208301254/ebin to code path for @319285679:: Runtime<erlang (/usr/local/lib/erlang) R15B01 []> 10:47:46,286 F: (CodeManager.java:217) : adding /Applications/eclipse/plugins/org.erlide.kernel.builder_0.17.0.201208301254/ebin to code path for @319285679:: Runtime<erlang (/usr/local/lib/erlang) R15B01 []> 10:47:46,289 F: (RuntimeVersion.java:67) : Runtime version: 'R14B' 10:47:46,289 F: (RuntimeVersion.java:67) : Runtime version: 'R15B' 10:47:46,289 F: (Backend.java:548) : backend dev@localhost: add path /Users/jthwaites/Dev/workspaces/github/et_ipaas/apps/txm/ebin 10:47:46,293 F: (ErlangDebugTarget.java:142) : debug daemon #Pidjerlide_5d40daa@localhost.25.0 10:47:46,295 F: (ErlangDebugTarget.java:145) : debug started #Piddev@localhost.1372.0 10:47:46,297 F: (ErlConsoleManager.java:39) : console ADDED to org.erlide.backend.BackendData@31fc049e 10:48:01,507 F: (RuntimeVersion.java:67) : Runtime version: 'R14B' 10:48:01,507 F: (RuntimeVersion.java:67) : Runtime version: 'R15B' 10:48:01,508 F: (Backend.java:846) : interpret /Users/jthwaites/Dev/workspaces/github/et_ipaas/apps/txm/ebin/prog.beam 10:48:10,509 W: (ErlideDebug.java:134) : timeout in erlide_debug:interpret/3 org.erlide.jinterface.rpc.RpcTimeoutException: timeout in erlide_debug:interpret/3 at org.erlide.jinterface.rpc.RpcHelper.getRpcResult(RpcHelper.java:239) at org.erlide.jinterface.internal.rpc.RpcFutureImpl.get(RpcFutureImpl.java:55) at org.erlide.jinterface.rpc.RpcHelper.rpcCall(RpcHelper.java:107) at org.erlide.backend.internal.ErlRuntime.makeCall(ErlRuntime.java:181) at org.erlide.backend.internal.Backend.call(Backend.java:200) at org.erlide.backend.internal.Backend.call(Backend.java:192) at org.erlide.backend.internal.Backend.call(Backend.java:185) at org.erlide.launch.debug.ErlideDebug.interpret(ErlideDebug.java:122) at org.erlide.backend.internal.Backend.interpret(Backend.java:847) at org.erlide.debug.ui.views.InterpretedModulesView.interpretOrDeinterpret(InterpretedModulesView.java:285) at org.erlide.debug.ui.views.InterpretedModulesView.setSubtreeChecked(InterpretedModulesView.java:236) at org.erlide.debug.ui.views.InterpretedModulesView$2.checkStateChanged(InterpretedModulesView.java:201) at org.eclipse.jface.viewers.CheckboxTreeViewer$1.run(CheckboxTreeViewer.java:166) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)