Hi everyone -, I saw these two videos on same examples -
I need to know about vscode debugger extension for typescript SDK based workflows
- why cant i step into the activities - it seems the debugger only works for going step by step inside a workflow - if i place debug points inside activity - it doesnt stop there - it kinda skips the activities
- why doesn’t the debugger simulate the await sleep(‘30 seconds’) command - it seems the debugger simply walks over this as if nothing has happened - it doesnt actually wait for 30 seconds
Would appreciate if someone takes the time to answer this
consider the wf given below
import { condition, defineSignal, proxyActivities, setHandler, sleep } from '@temporalio/workflow';
import type * as activities from './activities';
export const verifySignal = defineSignal<[]>('verify');
const { notifyHumanForVerification, collectFeedback } = proxyActivities<typeof activities>({
startToCloseTimeout: '1 minute',
});
export async function humanVerificationWorkflow(task: string) {
let verified = false;
await notifyHumanForVerification(task);
setHandler(verifySignal, () => {
verified = true;
});
await condition(() => verified);
await sleep('30 seconds');
await collectFeedback();
}
I am unable to do two things
- go inside notifyHumanForVerification or collectFeedback method and observe - how things are working
- simulate the 30 second wait period in the line - await sleep(‘30 second’)
Is any of this possible now, with temporal vscode debugger ?