dfinity / dfinity/pic-js

Error messages from trap in timers not showing

Open
#68 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
10
Forks
13
Avg merge
4h 41m
Merged PRs (30d)
1

Description

Starting server with PocketIcServer.start({showRuntimeLogs:false, showCanisterLogs:true })
Debug.print(...) shows in console
Canister trapping (ex: Debug.trap(...)), division by zero,.. doesn't show in timers/heartbeat
Not entirely sure if the problem is in pic-js, pocketic or Motoko

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue through PocketIcServer.start({showRuntimeLogs:false, showCanisterLogs:true}) with Debug.print, Debug.trap, and division by zero in a timer or heartbeat. Trace whether the missing errors arise in pic-js, PocketIC, or Motoko; done means timer and heartbeat traps are visible in the expected console output.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.