[gnome-builder/wip/gtk4-port] libide/foundry: add some debugging code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/foundry: add some debugging code
- Date: Fri, 24 Jun 2022 11:13:14 +0000 (UTC)
commit 7cef460ab164a5bad9532d4b984c56e4cd2d68b4
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 24 04:13:06 2022 -0700
libide/foundry: add some debugging code
src/libide/foundry/ide-run-context.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
---
diff --git a/src/libide/foundry/ide-run-context.c b/src/libide/foundry/ide-run-context.c
index 396b9817d..76fe73b56 100644
--- a/src/libide/foundry/ide-run-context.c
+++ b/src/libide/foundry/ide-run-context.c
@@ -886,6 +886,30 @@ ide_run_context_end (IdeRunContext *self,
g_return_val_if_fail (IDE_IS_RUN_CONTEXT (self), NULL);
g_return_val_if_fail (self->ended == FALSE, NULL);
+#if 0
+ {
+ guint j = 0;
+ for (const GList *iter = self->layers.head;
+ iter != NULL;
+ iter = iter->next)
+ {
+ IdeRunContextLayer *layer = iter->data;
+
+ g_print ("[%d]: CWD: %s\n", j++, layer->cwd);
+ g_print (" N FDS: %u\n", ide_unix_fd_map_get_length (layer->unix_fd_map));
+ g_print (" Environment: ");
+ for (guint i = 0; i < layer->env->len; i++)
+ g_print ("%s ", g_array_index (layer->env, char *, i));
+ g_print ("\n");
+ g_print (" Arguments: ");
+ for (guint i = 0; i < layer->argv->len; i++)
+ g_print ("%s ", g_array_index (layer->argv, char *, i));
+ g_print ("\n");
+
+ }
+ }
+#endif
+
self->ended = TRUE;
while (self->layers.length > 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]