Unable to debug an Erlang code with Makefile in IntelliJ
bhuvanplus opened this issue · 0 comments
Setup: OTP 26. IntelliJ 2022.3.1 with plugins Erlang 0.11.1162 and Makefile 223.8214.6 installed
Code under preview: The test suite ct_netconfc_SUITE. It has a Makefile for building. We could run it from CLI using the command make common_test_test ARGS="-suite ct_netconfc_SUITE"
.
Goal: I want to debug the test suite otp\lib\common_test\test\ct_netconfc_SUITE.
I have set breakpoints in the code. I have created a configuration using Run-->Edit Configurations for the make command specified above. I tried to debug using Run-->Debug-->Makefile-->Run. It successfully runs the configuration. But it did not stop at the breakpoint.
How to stop at the breakpoint?
The page https://www.jetbrains.com/help/idea/erlang-compile-run-debug.html#erlang-run-debug-apps explained about debugging an Erlang application without using Makefile. Whereas, my application uses Makefile for building.