Index: token.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token.module,v
retrieving revision 1.29
diff -u -p -r1.29 token.module
--- token.module	27 Apr 2010 18:52:52 -0000	1.29
+++ token.module	8 Jun 2010 02:21:40 -0000
@@ -24,6 +24,44 @@ function token_menu() {
     'type' => MENU_CALLBACK,
     'file' => 'token.pages.inc',
   );
+  if (module_exists('devel')) {
+    $items['node/%node/devel/token'] = array(
+      'title' => 'Token',
+      'page callback' => 'token_devel_object',
+      'page arguments' => array('node', 1),
+      'access arguments' => array('access devel information'),
+      'file' => 'token.pages.inc',
+      'type' => MENU_LOCAL_TASK,
+      'weight' => 5,
+    );
+    $items['user/%user/devel/token'] = array(
+      'title' => 'Token',
+      'page callback' => 'token_devel_object',
+      'page arguments' => array('user', 1),
+      'access arguments' => array('access devel information'),
+      'file' => 'token.pages.inc',
+      'type' => MENU_LOCAL_TASK,
+      'weight' => 5,
+    );
+    $items['comment/%comment/devel/token'] = array(
+      'title' => 'Token',
+      'page callback' => 'token_devel_object',
+      'page arguments' => array('comment', 1),
+      'access arguments' => array('access devel information'),
+      'file' => 'token.pages.inc',
+      'type' => MENU_LOCAL_TASK,
+      'weight' => 5,
+    );
+    $items['taxonomy/term/%taxonomy_term/devel/token'] = array(
+      'title' => 'Token',
+      'page callback' => 'token_devel_object',
+      'page arguments' => array('taxonomy_term', 2),
+      'access arguments' => array('access devel information'),
+      'file' => 'token.pages.inc',
+      'type' => MENU_LOCAL_TASK,
+      'weight' => 5,
+    );
+  }
   return $items;
 }
 
Index: token.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token.pages.inc,v
retrieving revision 1.7
diff -u -p -r1.7 token.pages.inc
--- token.pages.inc	25 Mar 2010 22:55:46 -0000	1.7
+++ token.pages.inc	8 Jun 2010 02:21:40 -0000
@@ -234,3 +234,9 @@ function token_autocomplete_token($type,
   $matches = drupal_map_assoc(array_keys($matches));
   drupal_json_output($matches);
 }
+
+function token_devel_object($entity, $object) {
+  $tokens = token_get_values($entity, $object);
+  $tokens = array_combine($tokens->tokens, $tokens->values);
+  return kdevel_print_object($tokens);
+}
