You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non-stop 'variables' requests after logging with variablesReference #18001
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded
This is by design of our debug console, namely on every new element we refresh the whole console since the console is implemented using a tree and that is the only way to show a new element in the tree. Unfortunetly for your use case you end up in an endless loop
This should be fixed via #11462
Though we are currently not pushing on that one since in Alex's own words: "debug repl is exposed to the extension host, and before adding another type of editor that is exposed to the extension host, we'd like to first figure out how we can separate it. The biggest problem there is the command service, where the editor dispatches everything through it. i.e. all cursor movement, etc"
So should be done in the future but not yet on the plan.
I can fix this by caching the data in the debug adapter. If I don't, and just respond with an empty request or error, logged objects from before the refresh will disappear from the console, which is not helpful. But can we cache this data on vscode's side so other debug adapters can benefit? It's also leading to lots of unnecessary traffic on the debug adapter socket, and I wonder if it would cause problems in a very long debug session.
roblourens now I am caching children for all expressions. Hopefully this does not break anything, we can wait and see. Previously I was not doing any caching because the tree would cache for me, but as you nicely point out here in REPL we are doing a lot of refreshes so we should also cache on our side.
I invalidate the cache whenever an expression container changes reference so I belive that should catch all cases.
João Moreno (@joaomoreno) I tried using your nice memoize functionality but could not figure out how to drop the cache. Is that possible?
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
roblourens commentedon Jan 1, 2017
Also, after terminating the session, I get another variables request, which fails because Chrome is shut down.
isidorn commentedon Jan 4, 2017
This is by design of our debug console, namely on every new element we refresh the whole console since the console is implemented using a tree and that is the only way to show a new element in the tree. Unfortunetly for your use case you end up in an endless loop
This should be fixed via #11462
Though we are currently not pushing on that one since in Alex's own words: "debug repl is exposed to the extension host, and before adding another type of editor that is exposed to the extension host, we'd like to first figure out how we can separate it. The biggest problem there is the command service, where the editor dispatches everything through it. i.e. all cursor movement, etc"
So should be done in the future but not yet on the plan.
roblourens commentedon Feb 25, 2017
This is causing https://github.com/Microsoft/vscode-chrome-debug/issues/364 now - I thought something like this might happen, but I hadn't seen any problem until Chrome 56 was released. After refreshing the page, the debug adapter can't request the properties of objects that were logged earlier.
I can fix this by caching the data in the debug adapter. If I don't, and just respond with an empty request or error, logged objects from before the refresh will disappear from the console, which is not helpful. But can we cache this data on vscode's side so other debug adapters can benefit? It's also leading to lots of unnecessary traffic on the debug adapter socket, and I wonder if it would cause problems in a very long debug session.
isidorn commentedon Mar 15, 2017
roblourens now I am caching children for all expressions. Hopefully this does not break anything, we can wait and see. Previously I was not doing any caching because the tree would cache for me, but as you nicely point out here in REPL we are doing a lot of refreshes so we should also cache on our side.
I invalidate the cache whenever an expression container changes reference so I belive that should catch all cases.
João Moreno (@joaomoreno) I tried using your nice
memoizefunctionality but could not figure out how to drop the cache. Is that possible?isidorn commentedon Mar 28, 2017
roblourens please verify
debug: cache children, helps with REPL which does a lot of tree refresh