ignatov / intellij-erlang

Erlang IDE
https://www.jetbrains.com/help/idea/2018.2/getting-started-with-erlang.html
Other
735 stars 120 forks source link

Remote debugging #946

Open menih opened 3 years ago

menih commented 3 years ago

I am trying to debug a node running on linux (Windows WSL) and set my IDE on windows. I've configured remove node debugging with the right node name and cookie and set the breakpoint. I verified connectivity between nodes (net_adm:ping()).

I executed the code on the remote node but it did not trigger the breakpoint in the debugger. I then tried to use the native debugger in erlang and set the break point on the same line. Once I executed, my breakpoint in Intellij weirdly triggered.

I think we are failing to use the interpreter module (i) to set the break point on the remote node but when the debugger is executing on the actual node, it seems to take.

Question - the debugger module - is it loaded and executed on the remote node? if so, how can I debug its execution? is there a log ?

ignatov commented 3 years ago

Hi, thanks for the question, I think that the debugger module is loaded on the local node and it's a root cause. Is there any chance to have a tiny repro with docker, I'm on mac.