Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1000663 // processDebug function

JavaX fragment (include)

static Object processDebug(String processorID, Object in) {
  return processDebug(processorID, in, "in");
}

static Object processDebug(String processorID, Object in, String outVar) ctex {
  Class processor = hotwire(processorID);
  set(processor, "in", in);
  try {
    set(processor, "debug", true);
  } catch (Exception e) {}
  call(processor, "main", new Object[] {new String[0]});
  return get(processor, outVar);
}

Author comment

Began life as a copy of #1000661

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000663
Snippet name: processDebug function
Eternal ID of this version: #1000663/1
Text MD5: 11e960a65b6965a0a0cdfa62eccede5a
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-21 21:23:36
Source code size: 432 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 651 / 907
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)