You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put the following into .vscode/launch.json while replacing hostname
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "common test",
"type": "erlang",
"request": "attach",
"projectnode": "ct@stacjonarny", <-------------------REPLACE HOSTNAME HERE!!!
"cookie": "QCPKEUVDZXBWDBVRXZEV",
"timeout": 300,
"cwd": "${workspaceFolder}"
}
]
}
Restart vscode and open otp folder again
Open integrated shell
./otp_build configure
make
Open lib/common_test/src/ct_auto_clean_SUITE.erl
Put breakpoint onto line 150 (first line of clean/1 function)
Hit F5 to start remote debugging
In integrated shell put: make common_test_test ARGS="-suite ct_auto_clean_SUITE" TEST_NEEDS_RELEASE=False LOCAL_DEPS=debugger
I've skipped adding {overrides, [{hello_world, "../hello_world"}]}. because the project does not have relx.config file, not sure what this line is doing exactly. Also attaching dap_server.log file.
Any help is appreciated, thanks :)
Expected behavior
Breakpoint should be hit.
Actual behavior
Test executes fully, but no breakpoint is hit.
Describe the bug
After following https://erlang-ls.github.io/articles/tutorial-debugger/ to the best of my ability in OTP source code repo, I cannot get to the point that breakpoint get's hit.
To Reproduce
Before following this, your system must have this utilities installed: https://github.com/erlang/otp/blob/master/HOWTO/INSTALL.md#required-utilities
git clone https://github.com/erlang/otp.git
./otp_build configure
make
lib/common_test/src/ct_auto_clean_SUITE.erl
make common_test_test ARGS="-suite ct_auto_clean_SUITE" TEST_NEEDS_RELEASE=False LOCAL_DEPS=debugger
I've skipped adding
{overrides, [{hello_world, "../hello_world"}]}.
because the project does not haverelx.config
file, not sure what this line is doing exactly. Also attachingdap_server.log
file.Any help is appreciated, thanks :)
Expected behavior
Breakpoint should be hit.
Actual behavior
Test executes fully, but no breakpoint is hit.
Context
erlang_ls
version (tag/sha): v0.0.42The text was updated successfully, but these errors were encountered: