atom-node-debugger icon indicating copy to clipboard operation
atom-node-debugger copied to clipboard

Cannot see object values - just tells me 'no frames'

Open RichardJECooke opened this issue 9 years ago • 5 comments

untitled

RichardJECooke avatar May 26 '16 12:05 RichardJECooke

I'm having this problem too. I'm developing a network application and it stops sending/receiving data, so I'd like to pause it and view a stack trace of the current execution state, but I see "no frames".

lell avatar Aug 01 '16 23:08 lell

PS --- attached screenshot. I realise my program probably has a bug, but if it's crashed then I'd like to know the stack trace for the crash, or if it's not crashed I'd like to know the stack trace at the time of the pause. Any pointers would be greatly appreciated! screen shot 2016-08-02 at 00 27 30

lell avatar Aug 01 '16 23:08 lell

@RichardJECooke I do not understand. Would you mind trying to explain again?

codecontemplator avatar Sep 03 '16 19:09 codecontemplator

I don't understand either, it just says 'no frames'.

RichardJECooke avatar Sep 03 '16 19:09 RichardJECooke

Hey all, I think that this situation occurs when the main() {} function reaches its end before all isolates finish, and then one of those remaining isolates raises an error. Looks like after reaching the end of the main() {} function, the program will continue until all isolates end. However, the debugging features of atom (at least those that handle displaying stack traces upon error), terminate when the end of the main() {} function is reached, meaning that stack traces for isolates that raise errors after that point are not triggered. It's possible that this "no frames" behaviour can be avoided if you add "await ..." commands at the end of the main() {} function for all remaining isolates.

I'm not sure what's supposed to happen in dart if main() {} ends before all isolates, but I can confirm that on my computer the isolates continue to run (which seems to be reasonable behaviour). So I would guess that this a bug in atom, albiet one that could have an easy work around (adding the awaits).

lell avatar Sep 04 '16 11:09 lell