Skip to content

How can we set up a dev environment for step debugging Conduit Connectors? #1724

Answered by nickchomey
nickchomey asked this question in Q&A
Discussion options

You must be logged in to vote

It was later suggested that we just include connectors we're developing as built-in connectors rather than standalone. This avoids all of the difficulties with Delve etc...

The docs are straightforward: https://conduit.io/docs/connectors/additional-built-in-plugins/

For my use-case of mysql and surrealdb you just do the following:

package main

import (
	"github.com/conduitio/conduit/pkg/conduit"
	mysql "github.com/conduitio-labs/conduit-connector-mysql"
	surrealdb "github.com/nickchomey/conduit-connector-surrealdb"
)

func main() {
	// Get the default configuration, including all built-in connectors
	cfg := conduit.DefaultConfig()

	cfg.ConnectorPlugins["mysql"] = mysql.Connector
	cfg.Co…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@nickchomey
Comment options

@lovromazgon
Comment options

Comment options

You must be logged in to vote
9 replies
@nickchomey
Comment options

@gedw99
Comment options

@hariso
Comment options

@nickchomey
Comment options

@hariso
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nickchomey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants