Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Commented Issue: Everytime I try to evaluate a Variable it fires unable to evaluate [806]

$
0
0
I am working with async and seems every time I try to watch the value of the variable is unable to evaluate.

Steps to reproduce:
* Create console app;
* Write following:
```javascript
// Arrange
var array = [];
for (var i = 0; i < 50000; i++) {
array.push(i);
}

// Act
console.log(array.length);
```
* Put breakpoint on `console.log(array.length)` and add `array` variable to Watch.

AR: evaluation timed out
ER: `array` successfully evaluated
Comments: Since it affects huge arrays we can solve it same way as Chrome DevTools: ![Image](https://www.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=nodejstools&WorkItemId=806&FileAttachmentId=816121) We can check whether argument is Array/Buffer, retrieve it length and after that perform grouping of values into ranges with some factor. Actual values can be retrieved as array slices.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>