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

Unable to debug in IDEs #425

Open
mgrybyk opened this issue Nov 20, 2019 · 0 comments
Open

Unable to debug in IDEs #425

mgrybyk opened this issue Nov 20, 2019 · 0 comments

Comments

@mgrybyk
Copy link

mgrybyk commented Nov 20, 2019

Description

I'd like to be able to run Futures in IDE's debug console while app is paused in debugger.

Reproduce

const Future = require('fibers/future')

const task = ms => Future.fromPromise(new Promise(resolve => setTimeout(resolve, ms, ms))).wait()

const flowWrapped = function () {
  console.log(task(10))
}.future()

flowWrapped()

The code above works as expected, however if I put a breakpoint inside flowWrapped function and run task(5) in debug console the execution is aborted, the only thing I see is Canceled in debug console.

image

I've also prepared a repository where you can reproduce the issue https://github.com/mgrybyk/fibers-vscode

Expected Result

I'd like to be able to debug with Fibers! Any help is appreciated

Environment

  • NodeJS: 10 LTS / 12 LTS
  • IDEs: Visual Studio Code (VSCode), IntelliJ
  • fibers: 4.0.2
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

1 participant