-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging Plugins #546
Comments
I'm going to close this as I assume my issues are related to go-delve/delve#1628 |
@patrickserrano Did you have sample launch.json file for reference? Thanks in advance! |
@stagmoose I can post one tomorrow when I'm on my work laptop. With that said, as of this summer there was a limitation with the debugger on macOS that prevents stepping through code inside a Go plugin. We worked around that by just littering our plugin with print statements while we did our dev work and taking them out when we pushed to production ¯_(ツ)_/¯ |
@patrickserrano |
@stagmoose here's the A few things to note, we passed a {
"version": "0.2.0",
"configurations": [
{
"name": "Launch Monstache with Plugin",
"type": "go",
"request": "launch",
"preLaunchTask": "Build Plugin",
"mode": "auto",
"program": "${workspaceFolder}/src/monstache",
"env": {
"MONSTACHE_LOG_DIR": "${workspaceFolder}/logs"
},
"envFile": "${workspaceFolder}/debug.env",
"args": [
"-mapper-plugin-path",
"./plugin.so",
"-f",
"../../config/config.toml",
"--enable-http-server"
],
"showLog": false,
"trace": "error"
}
]
} I should also note that we're not really using |
@patrickserrano |
This is more of a question than an issue, but is there any documentation available or tips you can provide for debugging plugin code? Using VS Code, I can get Monstache running with a plugin and can set breakpoints in the Monstache code but I can't figure out how to step into the plugin code.
Any tips or advice would be extremely helpful, thanks!
The text was updated successfully, but these errors were encountered: