commit | 0cf0942477a41b44f60dcd5bb519913318705d21 | [log] [tgz] |
---|---|---|
author | Nick M. Mitchell <nickm@us.ibm.com> | Fri Sep 30 12:03:38 2016 -0400 |
committer | Nick M. Mitchell <nickm@us.ibm.com> | Fri Sep 30 12:03:38 2016 -0400 |
tree | 029000f0276ea16c1eaa887ff147da797bb9e0e3 | |
parent | 04c5d2ee7236d37c7c9cf322f1d2ecccfc1966c5 [diff] |
add --action-only support to attach
This project currently supports debugging NodeJS actions on your laptop.
Start the debug client:
% (cd client; ./wskdb) Welcome to the OpenWhisk Debugger ? (wskdb)
You will now be in a REPL. Issue help
to see the list of available commands.
The syntax here is almost identical to that of the wsk
CLI.
? (wskdb) invoke actionName -p param1 value1 -p param2 value2
If you haven‘t yet attached to the action you are invoking, the invocation will proceed as if you weren’t in the debugger, and had issued a blocking invocation from the CLI.
Say for example you wish to attach to an action foo
, and this action occurs in a sequence seq
.
? (wskdb) attach foo Attaching to foo Creating action trampoline Creating sequence splice seq
If you wish to limit the instrumentation to the action, avoiding any containing rules or sequences:
? (wskdb) attach foo --action-only Attaching to foo Creating action trampoline