Skip to content

Debug mode #908

Answered by ngjaying
rwadowski asked this question in Q&A
Jul 27, 2021 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

Thanks @superrxan . I will add some tips about debugging in Goland. The general usage instruction can be found on GoLand help. Specific to eKuiper, you can debug with the same procedure. Just need to find out the entry program:

  1. Debug the whole program. Make sure data, plugins/sources, plugins/functions, plugins/sinks, , logs are created in the eKuiper root path. Add your breakpoints. Open cmd/kuiperd/main.go. In the main function, you'll find a green triangle in the ruler, click it and select debug. Then create your stream/rule that would run through your breakpoint, the debugger will pause there.
  2. To debug a small portion of code, I recommend to write a unit test and debug it. You can go…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@rwadowski
Comment options

@ngjaying
Comment options

@rwadowski
Comment options

@ngjaying
Comment options

@rwadowski
Comment options

Answer selected by rwadowski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants