Vscode-react-native: Issues debugging async functions

Created on 9 May 2020  路  1Comment  路  Source: microsoft/vscode-react-native

We've got a few reports of people having issues debugging async functions. I'm opening this issue to keep an eye of those and see if something rings a bell as to what could be going on:

I'm using the outdated versions of RN: 0.59.10. It would be great to properly support the debugging of async functions. In scenarios like const a = await sth, I can not set the breakpoint for this line. UI automatically sets the breakpoint to the parent function, which I can not really use. To overcome this I add a line of sync code, like variable declaration after the line I want to debug, and set the breakpoint there

Improve the debugging process : mainly with async functions, even when I refresh the debug session, my breakpoints often jumps to unwanted lines.

debugging is really tough. especially in async try/catch blocks using TS.

Being able to step through async functions would be amazing.

bug

Most helpful comment

Hi @molant , with respect to async functions, we tried to reproduce this error without using an extension but with Google Chrome debugger. This problem is reproducible even there, so it looks like it's not an extension issue. Most likely an error in the source maps.

React Native Debugger - Google Chrome 2020-08-11 16-00-14 (online-video-cutter com) (1)

>All comments

Hi @molant , with respect to async functions, we tried to reproduce this error without using an extension but with Google Chrome debugger. This problem is reproducible even there, so it looks like it's not an extension issue. Most likely an error in the source maps.

React Native Debugger - Google Chrome 2020-08-11 16-00-14 (online-video-cutter com) (1)

Was this page helpful?
0 / 5 - 0 ratings