Skip to content
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

feat: debug pkg #21

Merged
merged 17 commits into from
Feb 23, 2024
Merged

feat: debug pkg #21

merged 17 commits into from
Feb 23, 2024

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Nov 8, 2023

No description provided.

@Pantani Pantani enabled auto-merge (squash) November 16, 2023 00:14
@Pantani Pantani disabled auto-merge November 16, 2023 00:14
@Pantani Pantani enabled auto-merge (squash) November 16, 2023 00:14
Pantani added 2 commits December 21, 2023 15:12
# Conflicts:
#	explorer/go.mod
#	explorer/go.sum
#	go.work.sum
#	hermes/go.sum
#	integration/go.sum
@Pantani Pantani disabled auto-merge December 21, 2023 18:15
Pantani added 10 commits December 21, 2023 15:19
# Conflicts:
#	README.md
#	go.work.example
# Conflicts:
#	explorer/go.sum
#	go.work
#	hermes/go.sum
#	official/marketplace/go.sum
#	test/debug/go.mod
#	test/debug/go.sum
# Conflicts:
#	.github/workflows/test-integration.yml
#	examples/health-monitor/go.sum
#	explorer/go.mod
#	explorer/go.sum
#	explorer/integration/gex_test.go
#	hermes/go.mod
#	hermes/go.sum
#	integration/explorer/gex_test.go
#	integration/go.sum
#	marketplace/cmd/info.go
#	marketplace/cmd/list.go
#	marketplace/pkg/apps/details.go
#	marketplace/pkg/apps/search.go
#	marketplace/pkg/tree/tree_test.go
#	test/debug/go.mod
#	test/debug/go.sum
#	test/debug/tools.go
#	test/integration/explorer/gex_test.go
@Pantani Pantani removed the request for review from Ehsan-saradar February 16, 2024 23:03
test/debug/README.md Outdated Show resolved Hide resolved
@jeronimoalbi
Copy link
Member

@Pantani it might be a good idea to add a "Caveat" or similar section to the readme explaining that this method doesn't support debugging interactions with the CLI. If I got it correctly this method allows debugging running App commands independently of the CLI, which means that Ignite doesn't know the PID of the App, so it won't be able to attach to it and because of that debugged Apps don't be able to communicate with Ignite to for example use the Client API.

At some point I tried to create a debug app to run a debugger on apps that are connected with Ignite but I had blocking issues because the plugins system and the debugger use stdout. But maybe we could implement an "intermediate" solution using the approach in this PR and supporting dynamic attach in Ignite CLI.

By the way, it might be good to scaffold debug support by default.

Co-authored-by: Jerónimo Albi <jeronimo.albi@gmail.com>
@Pantani
Copy link
Collaborator Author

Pantani commented Feb 22, 2024

@Pantani it might be a good idea to add a "Caveat" or similar section to the readme explaining that this method doesn't support debugging interactions with the CLI. If I got it correctly this method allows debugging running App commands independently of the CLI, which means that Ignite doesn't know the PID of the App, so it won't be able to attach to it and because of that debugged Apps don't be able to communicate with Ignite to for example use the Client API.

At some point I tried to create a debug app to run a debugger on apps that are connected with Ignite but I had blocking issues because the plugins system and the debugger use stdout. But maybe we could implement an "intermediate" solution using the approach in this PR and supporting dynamic attach in Ignite CLI.

By the way, it might be good to scaffold debug support by default.

nice, added

@Pantani Pantani enabled auto-merge (squash) February 22, 2024 20:38
@Pantani Pantani requested a review from jeronimoalbi February 22, 2024 20:38
@Pantani Pantani merged commit 607099f into main Feb 23, 2024
11 checks passed
@Pantani Pantani deleted the feat/debug-pkg branch February 23, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants