Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages from trap in timers not showing #68

Open
infu opened this issue Nov 2, 2024 · 2 comments
Open

Error messages from trap in timers not showing #68

infu opened this issue Nov 2, 2024 · 2 comments

Comments

@infu
Copy link

infu commented Nov 2, 2024

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

@nathanosdev
Copy link
Contributor

It's possible to show these logs, but requires an update to pic-js. If you're interested in contributing, this PR on the Rust library implements what's needed: dfinity/ic#2533. Otherwise, I should be able to get to this myself in the coming weeks.

@mraszyk
Copy link

mraszyk commented Nov 11, 2024

The Rust library PR effectively makes a query call to the management canister's endpoint fetch_canister_logs, see spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants