IDE: IntelliJ IDEA 2022.2.2
我在Erlang代码中设置了一个断点,其中包含eunit测试用例。
为了调试它,我点击了"Run -> Debug“。我有个错误“测试套件被取消了”。可能是什么原因?
"C:\Program Files\Erlang OTP\bin\erl.exe" -pa C:\Users\bhu\AppData\Local\Temp\intellij_erlang_debugger_7789 -pa C:/Users/bhu/AppData/Local/Temp/eunit_teamcity9 -pa F:/1TB/P/workspace-IntelliJ-Erlang1/out/test/workspace-IntelliJ-Erlang1 -pa F:/1TB/P/workspace-IntelliJ-Erlang1 -run debugnode main 50067 -noshell -s init stop
Testing started at 20:59 ...
** Invalid beam file or no abstract code: "F:\\1TB\\P\\workspace-IntelliJ-Erlang1\\src\\my_sort.erl"
Test suite was cancelled. Reason: {abort,{module_not_found,my_sort}}发布于 2022-11-16 08:20:28
此错误意味着模块my_sort没有加载到VM中。你可以找到功能在这里。我认为这是因为您的模块my_sort的搜索路径没有使用标志-pa /mypath/my_sort.erl添加到代码路径中。
您能否尝试使用-pa ..添加到代码路径?
https://stackoverflow.com/questions/74448321
复制相似问题